Add batching to `morley-nettest`
Clarification and motivation
After !287 (merged) we are using morley-client
in morley-nettest
and thus we can put multiple transactions in one batch. But it's not exposed from morley-nettest
. The reasons why we need it:
- It can make tests faster. If we put 5 transactions into one batch, all of them will go to one block and we will have to wait for only one block. If we submit them one-by-one, we will wait for a block after each one, so in total we will wait for 5 blocks.
- Sometimes there can be some business logic that requires us to make multiple calls atomically. E. g. from the smart contract point of view there can be two calls
rememberPerson
andsetBirthDate
, but from the user perspective there can be one call that remembers a person with given name and birth date. So we should test such scenarios.
Acceptance criteria
Morley.Nettest
interface allows one to group multiple transactions into one batch.