[x] Add a new storage to the service pallet to hold all the versions of the MBSM contract addresses Vec<Address> where the index is the version number.
[x] Add another storage to hold a mapping between Service Id and the MBSM version used.
[x] Add new method to push a new version
[x] Add a method to get the most recent version of the MBSM (the top most one in the stack)
[x] Update all the evm hooks in the functions.rs file of the service pallet to call MBSM of the current blueprint and pass the blueprint_id as the first param.
[x] Create a new hook onBlueprintCreated defined in the above Spec and PR
Overview
We need to add support for the following Spec: https://github.com/tangle-network/tnt-core/issues/21
Checklist
Vec<Address>
where the index is the version number.functions.rs
file of the service pallet to call MBSM of the current blueprint and pass theblueprint_id
as the first param.onBlueprintCreated
defined in the above Spec and PROther notes
Companion PR in
tnt-core
with the new contracts: https://github.com/tangle-network/tnt-core/pull/22