Skip to main content

TWMultichainRegistryLogic

Methods

OPERATOR_ROLE

function OPERATOR_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

_msgData

function _msgData() external view returns (bytes)

Returns

NameTypeDescription
_0bytesundefined

_msgSender

function _msgSender() external view returns (address sender)

Returns

NameTypeDescription
senderaddressundefined

add

function add(address _deployer, address _deployment, uint256 _chainId, string metadataUri) external nonpayable

Add a deployment for a deployer.

Parameters

NameTypeDescription
_deployeraddressundefined
_deploymentaddressundefined
_chainIduint256undefined
metadataUristringundefined

contractType

function contractType() external pure returns (bytes32)

Returns the type of the contract.

Returns

NameTypeDescription
_0bytes32undefined

contractVersion

function contractVersion() external pure returns (uint8)

Returns the version of the contract.

Returns

NameTypeDescription
_0uint8undefined

count

function count(address _deployer) external view returns (uint256 deploymentCount)

Get the total number of deployments for a deployer.

Parameters

NameTypeDescription
_deployeraddressundefined

Returns

NameTypeDescription
deploymentCountuint256undefined

getAll

function getAll(address _deployer) external view returns (struct ITWMultichainRegistry.Deployment[] allDeployments)

Get all deployments for a deployer.

Parameters

NameTypeDescription
_deployeraddressundefined

Returns

NameTypeDescription
allDeploymentsITWMultichainRegistry.Deployment[]undefined

getMetadataUri

function getMetadataUri(uint256 _chainId, address _deployment) external view returns (string metadataUri)

Returns the metadata IPFS URI for a deployment on a given chain if previously registered via add().

Parameters

NameTypeDescription
_chainIduint256undefined
_deploymentaddressundefined

Returns

NameTypeDescription
metadataUristringundefined

remove

function remove(address _deployer, address _deployment, uint256 _chainId) external nonpayable

Remove a deployment for a deployer.

Parameters

NameTypeDescription
_deployeraddressundefined
_deploymentaddressundefined
_chainIduint256undefined

Events

Added

event Added(address indexed deployer, address indexed deployment, uint256 indexed chainId, string metadataUri)

Parameters

NameTypeDescription
deployer indexedaddressundefined
deployment indexedaddressundefined
chainId indexeduint256undefined
metadataUristringundefined

Deleted

event Deleted(address indexed deployer, address indexed deployment, uint256 indexed chainId)

Parameters

NameTypeDescription
deployer indexedaddressundefined
deployment indexedaddressundefined
chainId indexeduint256undefined