BridgeFacet
WithdrawnBatch
AddedAavegotchiBatch
AddedItemsBatch
WithdrawnItems
ERC721_TOKEN_TYPE
ERC1155_TOKEN_TYPE
setChildChainManager
Allow the Aavegotchi Diamond owner or Dao to change the childChain manager address
Parameters
Name | Type | Description |
---|---|---|
_newChildChainManager | address | Address of the new childChain manager |
childChainManager
Query the current address of the childChain Manager
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The current address of the childChain Manager |
withdrawItemsBatch
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
Name | Type | Description |
---|---|---|
_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
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
Name | Type | Description |
---|---|---|
_tokenIds | uint256[] | An array containing the identifiers of the NFTs to withdraw |
deposit
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
Name | Type | Description |
---|---|---|
_user | address | user address for whom deposit is being done |
_depositData | bytes | abi encoded tokenId |