Bridge Erc20
Bridged ERC20
Section titled “Bridged ERC20”srcToken
Section titled “srcToken”address srcToken
srcChainId
Section titled “srcChainId”uint256 srcChainId
BridgeMint
Section titled “BridgeMint”event BridgeMint(address account, uint256 amount)
BridgeBurn
Section titled “BridgeBurn”event BridgeBurn(address account, uint256 amount)
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
Section titled “bridgeMintTo”function bridgeMintTo(address account, uint256 amount) public
only a TokenVault can call this function
bridgeBurnFrom
Section titled “bridgeBurnFrom”function bridgeBurnFrom(address account, uint256 amount) public
only a TokenVault can call this function
transfer
Section titled “transfer”function transfer(address to, uint256 amount) public returns (bool)
any address can call this
transferFrom
Section titled “transferFrom”function transferFrom(address from, address to, uint256 amount) public returns (bool)
any address can call this
source
Section titled “source”function source() public view returns (address, uint256)
returns the srcToken being bridged and the srcChainId