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 380ebf7 commit e304bc8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion contracts/contracts/testnet/LynxSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,21 @@ contract LynxRootApplication is Ownable, ITACoChildToRoot {
}
}

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

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

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

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

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

0 comments on commit e304bc8

Please sign in to comment.