26 lines
981 B
Solidity
26 lines
981 B
Solidity
// SPDX-License-Identifier: LGPL-3.0-only
|
|
pragma solidity ^0.8.0;
|
|
|
|
/**
|
|
@title Interface to be used with handlers that support ERC20s and ERC721s.
|
|
@author ChainSafe Systems.
|
|
*/
|
|
interface IERCHandler {
|
|
/**
|
|
@notice Correlates {resourceID} with {contractAddress}.
|
|
@param resourceID ResourceID to be used when making deposits.
|
|
@param contractAddress Address of contract to be called when a deposit is made and a deposited is executed.
|
|
*/
|
|
function setResource(bytes32 resourceID, address contractAddress) external;
|
|
/**
|
|
@notice Marks {contractAddress} as mintable/burnable.
|
|
@param contractAddress Address of contract to be used when making or executing deposits.
|
|
*/
|
|
function setBurnable(address contractAddress) external;
|
|
|
|
/**
|
|
@notice Withdraw funds from ERC safes.
|
|
@param data ABI-encoded withdrawal params relevant to the handler.
|
|
*/
|
|
function withdraw(bytes memory data) external;
|
|
} |