@xo-cash/types
    Preparing search index...

    Type Alias XOInvitationMergesWithReference

    Reference to an item in an earlier commit that a variable, input, or output extends.

    {
    "invitationIdentifier": "...",
    ...
    "commits": [
    {
    "commitIdentifier": "...",
    "data": {
    "variables|inputs|outputs": [
    {
    "mergesWith": {
    "commitIdentifier": "...",
    "itemIndex": 0
    } ← this type
    }
    ]
    }
    ...
    }
    ...
    ]
    }
    type XOInvitationMergesWithReference = {
        commitIdentifier: XOInvitationCommitIdentifier;
        itemIndex: XOInvitationCommitDataItemIndex;
    }
    Index

    Properties

    Identifier of the earlier commit that contains the item being extended.

    Together with commitIdentifier, this identifies the exact item to extend when a later commit supplies information that was not added earlier. For example, when an input was already provided without unlockingBytecode, a follow up commit can add a new input entry with mergesWith, itemIndex and unlockingBytecode. The merger then uses this index to locate that earlier input and populate the missing field without replacing the commit.

    This variable is named 'item' because it's used with variables, inputs and outputs.

    Note: The index starts at 0 for the first item in the commit data array.