Skip to content

Test with hardhat#7

Merged
joaobrunoah merged 1 commit intoangstrom-updates-v2from
support-hardhat-contracts
Sep 16, 2025
Merged

Test with hardhat#7
joaobrunoah merged 1 commit intoangstrom-updates-v2from
support-hardhat-contracts

Conversation

@joaobrunoah
Copy link
Collaborator

Description

Alternative to #5 . It keeps the local tests running with compilations in forge, which are faster, but run the CI with hardhat contracts, which is closer to the deployment version of the contract.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Optimization: [ ] gas / [ ] bytecode
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests have 100% code coverage
  • The base branch is either main, or there's a description of how to merge

Copy link
Contributor

@EndymionJkb EndymionJkb left a comment

Choose a reason for hiding this comment

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

LGTM! Matches the others.

@joaobrunoah joaobrunoah merged commit 7b77a9b into angstrom-updates-v2 Sep 16, 2025
3 checks passed
joaobrunoah added a commit that referenced this pull request Sep 16, 2025
@joaobrunoah joaobrunoah deleted the support-hardhat-contracts branch September 16, 2025 18:08
joaobrunoah added a commit that referenced this pull request Sep 19, 2025
* Fix names of files and implement swap tests

* Create hook logic and tests to verify signatures

* Fix signature test

* Test error OnlyOncePerBlock

* 100% coverage

* Block unbalanced liquidity operations when Angstrom is locked

* 100% test coverage

* Commit test

* Run github action

* Remove unused dependency

* Natspec

* Fix solady install

* Fix lint

* Fix function mutability

* Modify package.json to Angstrom

* Readme

* Fix contract names and repo

* docs: update comments and non-semantics

* refactor: rename `_nodes` for clarity

* refactor: add `isRegisteredNode` getter; add `fromValidator` modifier on direct swaps

* refactor: add onlyWhenLocked modifier, and isolate updates in `_unlockAngstrom`

* refactor: rename validator modifier; simplify unlockAngstrom helper

* refactor: simplify/rename unlock functions; move getters from mock; reorder functions

* test: don't need leading underscores in tests

* test: introduce intermediate test

* fix: createHook in proper place

* test: propagate intermediate test

* refactor: rename validator modifier; simplify onBeforeSwap

* refactor: remove redundant code

* refactor: rename/reorder

* refactor: remove unused function

* refactor: one more simplification - only revert in one place for each error.

* docs: adjust comments after review

* Merge pull request #7 from balancer/support-hardhat-contracts

Test with hardhat

* Fix PR comment

* Add event when adding/removing node

* Use OwnableAuthentication instead of Singleton

* Use mcopy instead of a for loop

* Update contracts/AngstromBalancer.sol

Co-authored-by: Juan Ignacio Ubeira <juani@balancerlabs.dev>

* Unify invalid signature errors

* Change toggle to add/remove

* Revert add/removeNode if node state is inconsistent

* Fix remappings

* Fix Angstrom to use only memory signatures

* Add comments

* Use unlockAngstromWithSignature directly

* Apply suggestions from code review

Co-authored-by: EndymionJkb <EndymionJkb@gmail.com>

* Fix register/deregister nodes

---------

Co-authored-by: Jeff Bennett <endymionjkb@gmail.com>
Co-authored-by: Juan Ignacio Ubeira <juani@balancerlabs.dev>
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.

2 participants