From b80c5706108ef2737eba0d96f78f33c7ef95ec16 Mon Sep 17 00:00:00 2001 From: Yash Patil Date: Wed, 23 Oct 2024 17:56:58 -0700 Subject: [PATCH] feat: add factory --- src/contracts/periphery/OperatorFactory.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/contracts/periphery/OperatorFactory.sol diff --git a/src/contracts/periphery/OperatorFactory.sol b/src/contracts/periphery/OperatorFactory.sol new file mode 100644 index 000000000..9d45f903d --- /dev/null +++ b/src/contracts/periphery/OperatorFactory.sol @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: AGPL-3.0-only +pragma solidity >=0.8.0; + +import "./Operator.sol"; + +contract OperatorFactory { + function createOperator(address owner) external returns (Operator) { + return new Operator(owner); + } +} \ No newline at end of file