BridgeFacet

WithdrawnBatch

event WithdrawnBatch(address owner, uint256[] tokenIds)

AddedAavegotchiBatch

event AddedAavegotchiBatch(address owner, uint256[] tokenIds)

AddedItemsBatch

event AddedItemsBatch(address owner, uint256[] ids, uint256[] values)

WithdrawnItems

event WithdrawnItems(address owner, uint256[] ids, uint256[] values)

ERC721_TOKEN_TYPE

uint256 ERC721_TOKEN_TYPE

ERC1155_TOKEN_TYPE

uint256 ERC1155_TOKEN_TYPE

setChildChainManager

function setChildChainManager(address _newChildChainManager) external

Allow the Aavegotchi Diamond owner or Dao to change the childChain manager address

Parameters

NameTypeDescription

_newChildChainManager

address

Address of the new childChain manager

childChainManager

function childChainManager() external view returns (address)

Query the current address of the childChain Manager

Return Values

NameTypeDescription

[0]

address

The current address of the childChain Manager

withdrawItemsBatch

function withdrawItemsBatch(uint256[] _ids, uint256[] _values) external

Allows abatch withdrawal of ERC1155 NFTs/items by the owner

Only 20 items can be withdrawn in a single transaction, will throw if more than that

Parameters

NameTypeDescription

_ids

uint256[]

An array containing the identifiers of the items to withdraw

_values

uint256[]

An array containing the value/number of each item to withdraw

withdrawAavegotchiBatch

function withdrawAavegotchiBatch(uint256[] _tokenIds) external

Allows abatch withdrawal of ERC721 NFTs by the owner

Only 20 NFTs can be withdrawn in a single transaction, will throw if more than that

Parameters

NameTypeDescription

_tokenIds

uint256[]

An array containing the identifiers of the NFTs to withdraw

deposit

function deposit(address _user, bytes _depositData) external

called when token is deposited on root chain

Should be callable only by ChildChainManager Should handle deposit by minting or unlocking the required tokenId for user Make sure minting is done only by this function

Parameters

NameTypeDescription

_user

address

user address for whom deposit is being done

_depositData

bytes

abi encoded tokenId