TokenManagerERC1155

exitToMainERC1155 exitToMainERC1155(address contractOnMainnet, address to, uint256 id, uint256 amount) external

Move tokens from schain to mainnet.

{contractOnMainnet} tokens are burned on schain and unlocked on mainnet for {to} address.

exitToMainERC1155Batch exitToMainERC1155Batch(address contractOnMainnet, address to, uint256[] ids, uint256[] amounts) external

Move batch of tokens from schain to mainnet.

{contractOnMainnet} tokens are burned on schain and unlocked on mainnet for {to} address.

transferToSchainERC1155 transferToSchainERC1155(string targetSchainName, address contractOnMainnet, address to, uint256 id, uint256 amount) external

Move tokens from schain to schain.

{contractOnMainnet} tokens are burned on origin schain and are minted on {targetSchainName} schain for {to} address.

transferToSchainERC1155Batch transferToSchainERC1155Batch(string targetSchainName, address contractOnMainnet, address to, uint256[] ids, uint256[] amounts) external

Move batch of tokens from schain to schain.

{contractOnMainnet} tokens are burned on origin schain and are minted on {targetSchainName} schain for {to} address.

postMessage postMessage(bytes32 fromChainHash, address sender, bytes data) → address external

Allows MessageProxy to post operational message from mainnet or SKALE chains.

Requirements:

  • MessageProxy must be the sender.

  • fromSchainName must exist in TokenManagerERC1155 addresses.

addERC1155TokenByOwner addERC1155TokenByOwner(address erc1155OnMainnet, contract ERC1155OnChain erc1155OnSchain) external

Allows Schain owner to register an ERC1155 token clone in the token manager.

initialize initialize(string newChainName, contract MessageProxyForSchain newMessageProxy, contract TokenManagerLinker newIMALinker, contract CommunityLocker newCommunityLocker, address newDepositBox) external

Is called once during contract deployment.

ERC1155TokenAdded ERC1155TokenAdded(address erc1155OnMainnet, address erc1155OnSchain) event

Emitted when schain owner register new ERC1155 clone.

ERC1155TokenCreated ERC1155TokenCreated(address erc1155OnMainnet, address erc1155OnSchain) event

Emitted when TokenManagerERC1155 automatically deploys new ERC1155 clone.

ERC1155TokenReceived ERC1155TokenReceived(address erc1155OnMainnet, address erc1155OnSchain, uint256[] ids, uint256[] amounts) event

Emitted when someone sends tokens from mainnet to schain.