Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add tests and refactor #100

Conversation

clauBv23
Copy link
Contributor

@clauBv23 clauBv23 commented Aug 21, 2024

Description

add some needed tests and refactor #99

Task ID: OS-NO-ref

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I created tasks to update dependent repositories (OSx, Plugins)
  • I ran all tests with success and extended them if necessary.
  • I have updated the CHANGELOG.md file in the root folder.

@novaknole novaknole merged commit 045a403 into feature/targets-and-standardized-proposal Aug 22, 2024
7 checks passed
@novaknole novaknole deleted the feat/add-tests-and-refactor branch August 22, 2024 04:30
@novaknole novaknole restored the feat/add-tests-and-refactor branch August 26, 2024 12:47
@clauBv23 clauBv23 deleted the feat/add-tests-and-refactor branch August 26, 2024 16:05
novaknole added a commit that referenced this pull request Nov 5, 2024
* proposal and plugins interfaces changes with backwards compatibility

* add artifacts folder in gitignore

* fix calldata to memory

* add tests

* add operation type for target

* feat: add tests and refactor (#100)

* feat: add test for checking the ExecuteFailed is properly emitted

* feat: add new case in mock executor to simulate the tests

* feat: refactor code to avoid duplications

* ci: fix solhint warnings

* ci: fix lint issues

* remove previous target from targetset event

* add get proposalid in the interface

* rename function

* from calldata to memory

* improved target config and virtual functions

* add params byte approach (#102)

* add params byte approach

* add simple executor (#103)

* add simple executor

* action as free level export

* executor added with reentrancy guard

* call initialization only

* add comments

* fallback to dao as a target if no target set (#104)

* metadata contracts (#105)

* metadata contracts

* rename

* diamond storage for metadata

* remove revert

* Update contracts/src/executors/IExecutor.sol

Co-authored-by: Jør∂¡ <[email protected]>

* review changes

* unused import remove

* remove unusued import

* from memory to calldata in metadataextension

* create proposal id not enforced (#106)

* create proposal id not enforced

* new changes

* remove unusued function

* add condition (#108)

* add condition

* rename

* fix linter

* fix: executor 63/64 rule tests for coverage

* feat: add tests for powerful condition contract

* ci: undo changes

* ci: rmv not used import

* fix: prettier

* feat: add tests for conditions that checks block number and timestamp

* ci: prettier

* ci: lint fix

* Feat/rule condition clean up (#109)

* cd: rename powerfulCondtion to RuledCondition

* add natspecs

* remove redandant imports

* extension alwaystruecondition

* extension folder

* rename, fix and add tests

* add rules updated event

* Feat: add missing tests (#111)

* feat: add test for always true condition

* feat: modify mock code to allow sending the compare list on the data

* feat: add tests for rule condition

* feat: simplify ruled condition tests

* fix lint

* add supportsinterface on executor

* change const name

---------

Co-authored-by: Claudia <[email protected]>
Co-authored-by: Rekard0 <[email protected]>

* remove always true condition

* add hasSucceeded instead of (#112)

* add hasSucceeded instead of

* remove .only

---------

Co-authored-by: Claudia Barcelo <[email protected]>
Co-authored-by: Jør∂¡ <[email protected]>
Co-authored-by: Rekard0 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants