Twin

onlyMessageProxy onlyMessageProxy() modifier

Modifier for checking whether caller is MessageProxy contract.

addSchainContract addSchainContract(string schainName, address contractReceiver) external

Binds a contract on mainnet with their twin on schain.

Requirements:

  • msg.sender must be schain owner or has required role.

  • SKALE chain must not already be added.

  • Address of contract on schain must be non-zero.

removeSchainContract removeSchainContract(string schainName) external

Removes connection with contract on schain.

Requirements:

  • msg.sender must be schain owner or has required role.

  • SKALE chain must already be set.

hasSchainContract hasSchainContract(string schainName) → bool external

Returns true if mainnet contract and schain contract are connected together for transferring messages.

initialize initialize(contract IContractManager contractManagerOfSkaleManagerValue, contract MessageProxyForMainnet newMessageProxy) public