Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: create Dispatcher contract #1

Merged
merged 3 commits into from
Nov 15, 2024
Merged

feat: create Dispatcher contract #1

merged 3 commits into from
Nov 15, 2024

Conversation

EvgeniiZaitsevCW
Copy link
Collaborator

Main changes

  1. The new Dispatcher contract is intended to perform service functions on other contracts and automate their repeated execution when those other contracts cannot be changed to introduce new batch functions.
  2. For now the new contract allows to execute the following function of the CompoundAgent contract:
    • transferOwnership();
    • configureAdmin().

Test Coverage

The new contract is fully covered by tests.

Test coverage details
File % Stmts % Branch % Funcs % Lines
contracts/ 100.00 100.00 100.00 100.00
├─ Dispatcher.sol 100.00 100.00 100.00 100.00
├─ DispatcherStorage.sol 100.00 100.00 100.00 100.00
contracts/base/ 100.00 100.00 100.00 100.00
├─ AccessControlExtUpgradeable.sol 100.00 100.00 100.00 100.00
├─ PausableExtUpgradeable.sol 100.00 100.00 100.00 100.00
├─ RescuableUpgradeable.sol 100.00 100.00 100.00 100.00
├─ UUPSExtUpgradeable.sol 100.00 100.00 100.00 100.00
├─ Versionable.sol 100.00 100.00 100.00 100.00
contracts/interfaces/ 100.00 100.00 100.00 100.00
├─ IVersionable.sol 100.00 100.00 100.00 100.00
contracts/mocks/ 100.00 100.00 100.00 100.00
├─ CompoundAgentMock.sol 100.00 100.00 100.00 100.00
contracts/mocks/base/ 100.00 100.00 100.00 100.00
├─ AccessControlExtUpgradeableMock.sol 100.00 100.00 100.00 100.00
├─ PausableExtUpgradeableMock.sol 100.00 100.00 100.00 100.00
├─ RescuableUpgradeableMock.sol 100.00 100.00 100.00 100.00
├─ UUPSExtUpgradableMock.sol 100.00 100.00 100.00 100.00
contracts/mocks/tokens/ 100.00 100.00 100.00 100.00
├─ ERC20TokenMock.sol 100.00 100.00 100.00 100.00
contracts/testables/ 100.00 100.00 100.00 100.00
├─ DispatcherTestable.sol 100.00 100.00 100.00 100.00
------------------------------------------------------------------- ---------- ---------- ---------- ----------
All files 100.00 100.00 100.00 100.00
------------------------------------------------------------------- ---------- ---------- ---------- ----------

@igorsenych-cw igorsenych-cw changed the title feat: introduce the Dispatcher contract feat: create Dispatcher contract Nov 15, 2024
@igorsenych-cw igorsenych-cw merged commit 199cc3d into main Nov 15, 2024
6 checks passed
@igorsenych-cw igorsenych-cw deleted the origin branch November 15, 2024 07:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants