Tuple Support
Tally offers simplified tuple arrays in Custom Actions.
Last updated
Was this helpful?
Tally offers simplified tuple arrays in Custom Actions.
Last updated
Was this helpful?
Tally's Custom Action builder supports the tuple[]
type, called tuple arrays.
The tuple
type in Soldity is a data structure that contains a fixed number of elements, each of which can be of a different type. For instance, a tuple can contain an integer, a string, and a boolean value all together. The tuple[]
type, called a "tuple array", contains a list of tuples.
To create a proposal with a tuple array, add Custom Actions to your proposal. Then, use the imported ABI. Tally will infer the type from the ABI and help build the tuple array.
If a tuple or tuple array is nested in another tuple, enter the nested tuple(s) in plaintext with brackets. This tuple builder contains two nested tuple arrays, contactDetails
and chains
, and one nested tuple bountyTerms
:
To add tuple arrays and tuples, enter them in plaintext: