Skip to content

Latest commit

 

History

History
106 lines (69 loc) · 2.76 KB

File metadata and controls

106 lines (69 loc) · 2.76 KB
title IMBSMRegistry
description Auto-generated Solidity API reference.

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
Name Type Description
blueprintId uint64 The blueprint identifier
Return Values
Name Type Description
mbsmAddress address The 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
Name Type Description
mbsmAddress address The latest MBSM

getMBSMByRevision

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

Get an MBSM by explicit revision

Parameters
Name Type Description
revision uint32 The registry revision (1-indexed)
Return Values
Name Type Description
mbsmAddress address The 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).

Reverts if revision is currently inside the deprecation grace window. Pinning a blueprint to a revision that is itself deprecated would defeat the deprecation flow: getMBSM would return address(0) the moment completeDeprecation ran, breaking every BSM call for the pinned blueprint. Choose a revision that is not scheduled for deprecation, or wait until the deprecation has fully completed before pinning to a different revision.

unpinBlueprint

function unpinBlueprint(uint64 blueprintId) external

Unpin a blueprint (reverting to latest)