BuildapireferenceIMBSMRegistry

IMBSMRegistry

Source: https://github.com/tangle-network/tnt-core/blob/main/src/interfaces/IMBSMRegistry.sol

IMBSMRegistry

Minimal interface for the Master Blueprint Service Manager registry

Functions

getMBSM

function getMBSM(uint64 blueprintId) external view returns (address mbsmAddress)

Get the MBSM address currently pinned for a blueprint

Parameters
NameTypeDescription
blueprintIduint64The blueprint identifier
Return Values
NameTypeDescription
mbsmAddressaddressThe pinned MBSM (or latest if not pinned)

getPinnedRevision

function getPinnedRevision(uint64 blueprintId) external view returns (uint32 revision)

Get the revision pinned for a blueprint (0 = latest)

getLatestMBSM

function getLatestMBSM() external view returns (address mbsmAddress)

Get the latest registered MBSM address

Return Values
NameTypeDescription
mbsmAddressaddressThe latest MBSM

getMBSMByRevision

function getMBSMByRevision(uint32 revision) external view returns (address mbsmAddress)

Get an MBSM by explicit revision

Parameters
NameTypeDescription
revisionuint32The registry revision (1-indexed)
Return Values
NameTypeDescription
mbsmAddressaddressThe registered address for the revision

getLatestRevision

function getLatestRevision() external view returns (uint32)

Get the latest revision number registered in the registry

pinBlueprint

function pinBlueprint(uint64 blueprintId, uint32 revision) external

Pin a blueprint to a specific revision (0 disallowed)

unpinBlueprint

function unpinBlueprint(uint64 blueprintId) external

Unpin a blueprint (reverting to latest)