Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Add abi.ninja style ablity to handle tuples #30

@escottalexander

Description

@escottalexander

Currently when you click "manually add transaction" and the custom tab then you have to input the functions signature
image

Abi.ninja can handle tuples while HWR can not. This issue is for making HWR more robust so that it can handle tuples.
image

For an example load this contract in https;//abi.ninja: 0xC059A531B4234D05E9ef4ac51028F7E6156E2CCe

With this abi:

[
 {
    "inputs": [
      { "internalType": "uint256", "name": "amount", "type": "uint256" },
      {
        "components": [
          { "internalType": "uint256", "name": "rewardId", "type": "uint256" },
          { "internalType": "uint256", "name": "amount", "type": "uint256" },
          { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" }
        ],
        "internalType": "struct IMemecoinStaking.Reward[]",
        "name": "rewards",
        "type": "tuple[]"
      }
    ],
    "name": "unstake",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]

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