Tuple Support
Tally offers simplified tuple arrays in Custom Actions.
Tally's Custom Action builder supports the tuple[]
type, called tuple arrays.
What are 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.
Building a tuple array
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.
Nested tuples
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:
Last updated