ERC20LockingConnectorLogic
Inherits: TokenConnectorLogic
Functions
applyState
Applies the given state to the token contract by transfers.
function applyState(bytes calldata _state) public virtual override onlyBridge;
Parameters
Name | Type | Description |
---|---|---|
_state | bytes | The 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
Name | Type | Description |
---|---|---|
value | uint256 | The amount of tokens to lock. |
Events
Locked
Events
event Locked(address indexed account, uint256 value);