Skip to main content

Bridged ERC20

srcToken

address srcToken

srcChainId

uint256 srcChainId

BridgeMint

event BridgeMint(address account, uint256 amount)

BridgeBurn

event BridgeBurn(address account, uint256 amount)

init

function init(address _addressManager, address _srcToken, uint256 _srcChainId, uint8 _decimals, string _symbol, string _name) external

Initializer to be called after being deployed behind a proxy.

bridgeMintTo

function bridgeMintTo(address account, uint256 amount) public

only a TokenVault can call this function

bridgeBurnFrom

function bridgeBurnFrom(address account, uint256 amount) public

only a TokenVault can call this function

transfer

function transfer(address to, uint256 amount) public returns (bool)

any address can call this

transferFrom

function transferFrom(address from, address to, uint256 amount) public returns (bool)

any address can call this

source

function source() public view returns (address, uint256)

returns the srcToken being bridged and the srcChainId