pragma solidity 0.5.17; import {IBondedECDSAKeepFactory} from "@keep-network/keep-ecdsa/contracts/api/IBondedECDSAKeepFactory.sol"; contract ECDSAKeepFactoryStub is IBondedECDSAKeepFactory { address public keepOwner; address public keepAddress = address(888); uint256 public stakeLockDuration; uint256 public minimumBondableValue = 999; uint256 feeEstimate = 123456; function openKeep( uint256, uint256, address _owner, uint256, uint256 _stakeLockDuration ) external payable returns (address) { require(msg.value >= feeEstimate, "Insufficient value for new keep creation"); keepOwner = _owner; stakeLockDuration = _stakeLockDuration; return keepAddress; } function setKeepAddress(address _keepAddress) external { keepAddress = _keepAddress; } function openKeepFeeEstimate() external view returns (uint256) { return feeEstimate; } function setOpenKeepFeeEstimate(uint256 _fee) external { feeEstimate = _fee; } function getSortitionPoolWeight( address ) external view returns (uint256 poolWeight) { return 100000; } function setMinimumBondableValue( uint256 _minimumBondableValue, uint256, uint256 ) public { minimumBondableValue = _minimumBondableValue; } }