Xc admin/propose instructions #463
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Scaffolding for a function that proposes an array of instructions as local chain instructions or remote instructions.
I'm hoping to test it once the other pieces are implemented.
The main challenge for this part of the code is batching instructions into transactions. We don't want a ledger user's to have to sign too many transactions. Simultaneously, all instructions might not fit in one transaction.
The current (naive) solution is having 1 instruction per transaction, having the ledger sign all transactions at once and then sending all transactions. This might need to change but don't want to focus on this until we can test it in the UI.