You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
815 B
31 lines
815 B
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity >=0.6.0 <0.8.0;
|
|
|
|
import "../GSN/Context.sol";
|
|
import "../token/ERC777/ERC777.sol";
|
|
|
|
contract ERC777Mock is Context, ERC777 {
|
|
constructor(
|
|
address initialHolder,
|
|
uint256 initialBalance,
|
|
string memory name,
|
|
string memory symbol,
|
|
address[] memory defaultOperators
|
|
) public ERC777(name, symbol, defaultOperators) {
|
|
_mint(initialHolder, initialBalance, "", "");
|
|
}
|
|
|
|
function mintInternal (
|
|
address to,
|
|
uint256 amount,
|
|
bytes memory userData,
|
|
bytes memory operatorData
|
|
) public {
|
|
_mint(to, amount, userData, operatorData);
|
|
}
|
|
|
|
function approveInternal(address holder, address spender, uint256 value) public {
|
|
_approve(holder, spender, value);
|
|
}
|
|
}
|
|
|