ERC20LockingConnectorLogic

Git Source

Inherits: TokenConnectorLogic

Functions

applyState

Applies the given state to the token contract by transfers.

function applyState(bytes calldata _state) public virtual override onlyBridge;

Parameters

NameTypeDescription
_statebytesThe state to be applied.

lock

The amount of tokens to burn must be approved by the sender

Locks the specified amount of tokens to transfer them to the other network.

function lock(uint256 value) public payable onlySettled;

Parameters

NameTypeDescription
valueuint256The amount of tokens to lock.

Events

Locked

Events

event Locked(address indexed account, uint256 value);