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