Skip to content

Support ABIv2 "Tuple" Type #10

@laalaguer

Description

@laalaguer

Since v0.6.0 solidity compiler supports complex input-ouput params of functions using structures.
Now many tools like Truffle can compile and generate and test complex params functions.

This is so-called ABIv2 support.

We need to support that too in thor-devkit.py, and here is the information that developer should know:

Background:
What is tuple type in ABIv2:
https://docs.soliditylang.org/en/v0.5.3/abi-spec.html#handling-tuple-types

Currently we rely on eth-abi library to build the abi.Function module.

How do we fix the:

  1. abi.Function.encode(params_list)
  2. abi.Function.decode(bytes)

Is eth-abi supporting it? Or can we switch to a new library to support us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions