smart-contract-fiesta
/
organized_contracts
/06
/0604bfbb4415dffd0b4d2684dbe2eb1a25dcf9288edec8607d7a00cd8b4db3a3
/OwnedRegistrant.sol
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023. | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; | |
import {Ownable2Step} from "./Ownable2Step.sol"; | |
/** | |
* @title OwnedRegistrant | |
* @notice Ownable contract that registers itself with the OperatorFilterRegistry and administers its own entries, | |
* to facilitate a subscription whose ownership can be transferred. | |
*/ | |
contract OwnedRegistrant is Ownable2Step { | |
address constant registry = 0x000000000000AAeB6D7670E522A718067333cd4E; | |
constructor(address _owner) { | |
IOperatorFilterRegistry(registry).register(address(this)); | |
transferOwnership(_owner); | |
} | |
} |