Remove ERC721 functinality and ACL for system
DepositBeneficiaryToken is not FeeRebateToken.
New token is deployed independently from TBTCSystem
@@ -7,11 +7,9 @@ import {IECDSAKeepVendor} from "@keep-network/keep-ecdsa/contracts/api/IECDSAKee
import {ITBTCSystem} from "../interfaces/ITBTCSystem.sol";
import {DepositLog} from "../DepositLog.sol";
-import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
-import "./ERC721MinterAuthority.sol";
-contract TBTCSystem is Ownable, ITBTCSystem, ERC721, ERC721MinterAuthority, DepositLog {
+contract TBTCSystem is Ownable, ITBTCSystem, DepositLog {
bool _initialized = false;
@@ -21,13 +19,6 @@ contract TBTCSystem is Ownable, ITBTCSystem, ERC721, ERC721MinterAuthority, Depo
address public keepRegistry;
- constructor(address _depositFactory)
- ERC721MinterAuthority(_depositFactory)
- public
- {
- // solium-disable-previous-line no-empty-blocks
- }
-
function initialize(
address _keepRegistry
) external onlyOwner {
@@ -74,21 +65,4 @@ contract TBTCSystem is Ownable, ITBTCSystem, ERC721, ERC721MinterAuthority, Depo
_keepAddress = IECDSAKeepVendor(keepVendorAddress)
.openKeep(_n,_m, msg.sender);
}
-
- /// @notice Function to mint a new token.
- /// @dev Reverts if the given token ID already exists.
- /// This function can only be called by depositFactory
- /// @param _to The address that will own the minted token
- /// @param _tokenId uint256 ID of the token to be minted
- function mint(address _to, uint256 _tokenId) public onlyFactory {
- _mint(_to, _tokenId);
- }
-
- /// @notice Checks if an address is a deposit.
- /// @dev Verifies if Deposit ERC721 token with given address exists.
- /// @param _depositAddress The address to check
- /// @return True if deposit with given value exists, false otherwise.
- function isDeposit(address _depositAddress) public returns (bool){
- return _exists(uint256(_depositAddress));
- }
}
