As we've discussed on the call, we should first explore improving the MockChain/MockChainBuilder before trying to build something on top of it. The low-hanging fruits I see here are:
- Moving the
compile_rust_package to the miden-testing crate but using the (installed via midenup) cargo-miden binary to compile the packages. Because we would rather not introduce the compiler in the crate dependencies there and also we need to support multiple installed toolchains.
- Integrating an equivalent of
build_existing_basic_wallet_account_builder into the MockChainBuilder.
- Making the note construction easier. See
create_note_from_package that might be implemented in the miden-testing crate using a builder pattern.
- Moving (and refactoring) other generic helpers in tests/integration-network/src/mockchain/helpers.rs. to the
miden-testing crate.
Originally posted by @greenhat in #896 (comment)
As we've discussed on the call, we should first explore improving the
MockChain/MockChainBuilderbefore trying to build something on top of it. The low-hanging fruits I see here are:compile_rust_packageto themiden-testingcrate but using the (installed viamidenup)cargo-midenbinary to compile the packages. Because we would rather not introduce the compiler in the crate dependencies there and also we need to support multiple installed toolchains.build_existing_basic_wallet_account_builderinto theMockChainBuilder.create_note_from_packagethat might be implemented in themiden-testingcrate using a builder pattern.miden-testingcrate.Originally posted by @greenhat in #896 (comment)