Skip to content

Commit

Permalink
Update LynxMockRootApplication to call a child application based on I…
Browse files Browse the repository at this point in the history
…TACoRootToChild.
  • Loading branch information
derekpierre committed Sep 25, 2023
1 parent c6bdb17 commit e53f44b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion contracts/contracts/testnet/LynxSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,27 @@ contract LynxRootApplication is Ownable, ITACoChildToRoot {
}
}

contract LynxMockRoot is Ownable, ITACoChildToRoot {
contract LynxMockRootApplication is Ownable, ITACoChildToRoot, ITACoRootToChild {
ITACoRootToChild public childApplication;

function setChildApplication(ITACoRootToChild _childApplication) external onlyOwner {
childApplication = _childApplication;
}

function updateOperator(
address _stakingProvider,
address _operator
) external override onlyOwner {
childApplication.updateOperator(_stakingProvider, _operator);
}

function updateAuthorization(
address _stakingProvider,
uint96 _amount
) external override onlyOwner {
childApplication.updateAuthorization(_stakingProvider, _amount);
}

// solhint-disable-next-line no-empty-blocks
function confirmOperatorAddress(address _operator) external override {}
}
Expand Down

0 comments on commit e53f44b

Please sign in to comment.