Skip to main content

Solidity API

IERCHandler

setResource

function setResource(bytes32 resourceID, address contractAddress) external

Correlates {resourceID} with {contractAddress}.

NameTypeDescription
resourceIDbytes32ResourceID to be used when making deposits.
contractAddressaddressAddress of contract to be called when a deposit is made and a deposited is executed.

setBurnable

function setBurnable(address contractAddress) external

Marks {contractAddress} as mintable/burnable.

NameTypeDescription
contractAddressaddressAddress of contract to be used when making or executing deposits.

withdraw

function withdraw(bytes data) external

Withdraw funds from ERC safes.

NameTypeDescription
databytesABI-encoded withdrawal params relevant to the handler.