exit-format
exit-format copied to clipboard
Allow the claim method to claim multiple guarantees
- we already allow for the token type and the target channel outcome to be indexed in the transaction calldata, with an escape hatch, empty array
[]implying "do them all". - if you have many channels virtually funded through the same hub, you will likely want to claim all of the guarantees. SO we should upgrade
targetChannelIndex: numbertotargetChannelIndices: number[].
https://github.com/statechannels/exit-format/blob/62a7c65eeddf159369033410bdde8533e09100c3/nitro-src/claim.ts#L11
This presents a bit of a challenge, both:
- because we now to specify payout indices for each target, for each target index in some target indices for each asset in the outcome of the "origin" channel. Thus the
exitRequestbecomes quite complicated. - I anticipate we will run into "stack too deep" difficulties with this large number of variables