These docs are being revamped as part of the platform transition and may be out of date. Reach out to support if assistance is needed.

Tuple Support

Tally’s Custom Action builder supports the tuple[] type, called tuple arrays.

What are tuple arrays?

The tupletype 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, contactDetailsand chains , and one nested tuple bountyTerms :

tuple builder with empty nested tuples

To add tuple arrays and tuples, enter them in plaintext:

tuple builder with filled-in nested tuples