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

Remove account dual dispatchers #1168

Conversation

ericnordelo
Copy link
Member

Partially fixes #1128

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (remove-dual-dispatchers@14b4b96). Learn more about missing BASE report.

Additional details and impacted files
@@                    Coverage Diff                     @@
##             remove-dual-dispatchers    #1168   +/-   ##
==========================================================
  Coverage                           ?   89.66%           
==========================================================
  Files                              ?       53           
  Lines                              ?     1316           
  Branches                           ?        0           
==========================================================
  Hits                               ?     1180           
  Misses                             ?      136           
  Partials                           ?        0           
Files with missing lines Coverage Δ
...ges/account/src/extensions/src9/snip12_utils.cairo 47.05% <ø> (ø)
packages/account/src/extensions/src9/src9.cairo 91.66% <100.00%> (ø)
...kages/token/src/erc20/extensions/erc20_votes.cairo 94.11% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14b4b96...046acdd. Read the comment docs.

@immrsd
Copy link
Collaborator

immrsd commented Oct 1, 2024

There are also SnakeAccountMock and CamelAccountMock mocks left in the token package. Shall we remove them too?

@ericnordelo
Copy link
Member Author

There are also SnakeAccountMock and CamelAccountMock mocks left in the token package. Shall we remove them too?

Those are removed in #1175

…ro-contracts into feat/remove-account-dual-dispatchers
Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ericnordelo ericnordelo merged commit b8a3ed5 into OpenZeppelin:remove-dual-dispatchers Oct 2, 2024
2 checks passed
@ericnordelo ericnordelo deleted the feat/remove-account-dual-dispatchers branch October 2, 2024 20:36
ericnordelo added a commit that referenced this pull request Oct 7, 2024
* feat: remove access dual dispatchers (#1154)

* feat: remove account dual dispatchers (#1168)

* Remove token dual dispatchers (#1175)

* feat: remove modules

* fix: mock

* fix: linter

* fix: tests

* fix: mock

* feat: apply review suggestions

* feat: fix import

* Remove dual dispatchers docs and CHANGELOG (#1177)

* feat: update docs

* feat: update CHANGELOG

* fix: typo

* fix: mod

* feat: remove unused imports

* fix: README

* feat: remove selectors

* Update docs/modules/ROOT/pages/interfaces.adoc

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* feat: add mention and link to dispatcher types

* feat: remove import

* Update docs/modules/ROOT/pages/interfaces.adoc

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* fix: README

---------

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

---------

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>
ericnordelo added a commit that referenced this pull request Oct 8, 2024
* feat: add features

* feat: remove access dual dispatchers (#1154)

* feat: bump scarb

* feat: update CHANGELOG

* feat: add features

* feat: remove account dual dispatchers (#1168)

* feat: move mocks to test_common

* Remove token dual dispatchers (#1175)

* feat: remove modules

* fix: mock

* fix: linter

* fix: tests

* fix: mock

* feat: apply review suggestions

* feat: update docs

* feat: update CHANGELOG

* fix: typo

* fix: mod

* feat: remove unused imports

* fix: README

* feat: move mocks into test_common

* feat: remove mocks from release target

* fix: mock

* fix: imports

* feat: bumo scarb and remove assert_macros from manifest

* feat: re-add assert_macros

* feat: add test target names

* docs: update index
ericnordelo added a commit that referenced this pull request Nov 20, 2024
* feat: add features

* feat: remove access dual dispatchers (#1154)

* feat: bump scarb

* feat: update CHANGELOG

* feat: add features

* feat: remove account dual dispatchers (#1168)

* feat: move mocks to test_common

* Remove token dual dispatchers (#1175)

* feat: remove modules

* fix: mock

* fix: linter

* fix: tests

* fix: mock

* feat: apply review suggestions

* feat: update docs

* feat: update CHANGELOG

* fix: typo

* fix: mod

* feat: remove unused imports

* fix: README

* feat: move mocks into test_common

* feat: remove mocks from release target

* fix: mock

* fix: imports

* feat: bumo scarb and remove assert_macros from manifest

* feat: re-add assert_macros

* feat: add test target names

* docs: update index

* feat: add interface

* feat: add double ended queue struct

* feat: add proposal core

* +

* feat: add extension traits

* feat: add hash_proposal

* feat: add state internal function

* feat: add bytearray to utils

* fix: bytearray trait types

* feat: apply stash

* feat: add propose mechanism

* feat: add queue mechanism

* feat: add execute and cancel

* feat: add main trait

* feat: finish first extension

* feat: add votes quorum fractional extension main logic

* feat: add settings extension

* feat: add governor votes extension

* feat: add core execution extension

* feat: add timelock execution extension

* refactor: dependencies

* feat: add mock

* fix: linter

* fix: comment

* feat: add some tests

* fix: linter

* refactor: comments

* fix: import path

* fix: test

* feat: add relay mechanism

* fix: conditions

* feat: add more tests

* fix: linter

* feat: add more tests

* feat: add more tests

* Update packages/governance/src/governor/interface.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* Update packages/governance/src/governor/interface.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* Update packages/governance/src/governor/governor.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* Update packages/governance/src/governor/governor.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* Update packages/governance/src/governor/governor.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* Update packages/governance/src/governor/proposal_core.cairo

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>

* feat: apply review updates

* fix: linter

* fix: bytearray

* feat: add more tests

* feat: add more tests

* Update packages/utils/src/bytearray.cairo

Co-authored-by: immrsd <103599616+immrsd@users.noreply.github.com>

* feat: apply review updates

* feat: add cast vote by sig

* feat: add more tests

* feat: add more tests

* fix: remove import

* feat: add yet more tests

* feat: update CHANGELOG

* feat: apply review updates

* feat: add tests for governor core execution

* feat: add more tests

* feat: add more tests

* feat: add more tests

* fix: linter

* feat: add more tests

* feat: add more tests

* feat: add more tests

* fix: warnings

* feat: add more tests

* feat: add more tests

* fix: linter

---------

Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>
Co-authored-by: immrsd <103599616+immrsd@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants