Skip to main content

ITWMultichainRegistry

Methods

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

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