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

Refactor tranche token #330

Merged
merged 129 commits into from
Jul 2, 2024
Merged

Refactor tranche token #330

merged 129 commits into from
Jul 2, 2024

Conversation

hieronx
Copy link
Contributor

@hieronx hieronx commented Jun 23, 2024

No description provided.

ilinzweilin and others added 30 commits April 16, 2024 13:43
* Consistent mocks naming (#299)

* rename mocks to consistent formatting

* fix MockRestrictionManagerFactory

---------

Co-authored-by: Jeroen <[email protected]>

* update all relative imports to absolute imports (#297)

Co-authored-by: Jeroen <[email protected]>

* Remove trusted forwarder pattern (#294)

* Remove trusted forwarder pattern

* Update comment

* Fix allowance

* Change to callback

* Change allowance

* Fix tests

* Update name

* Set up 7575 share interface

* Format

* Remove unused transferFrom

* Remove successCheck

* Don't use address 0 for authTransferFrom

* Fix comment

* Readd transfer callback checks

* Add operator logic (#298)

* Add operator logic

* Format

* Cleanup

* Add test

* Update pragmas in interfaces

* Update docs

* Add docs

* Add redeem test

* Fix test

* Clarify

* Add modifier

* Move owner check to internal method

* ERC7575 updates (#302)

* Replace delayed/pause admins with Guardian contract (#283)

* Set up idea

* plug in guardian everywhere, remove pauseAdmin, comment out broken tests

* add safeMock.sol

* add values_mapping_address_uint field to Mock.sol

* fix some tests

* fix tests

* update scripts and fix more tests

* update fork tests

* update var name

* fix tests

* remove delayedAdmin

* remove duplicate imports

* Add IGuardian.sol and update Guardian.sol

* fix tests

* update Guardian.sol

* Format

---------

Co-authored-by: Jeroen Offerijns <[email protected]>
Co-authored-by: Jeroen <[email protected]>

* Remove `state.exists` and use pending Deposit and redeem requests instead (#296)

* remove state.exists and use pending Deposit and redeem requests instead

* forge fmt

* Update requires and fix tests

---------

Co-authored-by: Jeroen <[email protected]>

* forge fmt

* update MockRestrictionManagerFactory

* uncomment name and symbol asserts

---------

Co-authored-by: Adam Stox <[email protected]>
Co-authored-by: Jeroen <[email protected]>
Co-authored-by: Jeroen Offerijns <[email protected]>
Co-authored-by: Adam Stox <[email protected]>
… overall gas cost on all routers. Mark the contract address used as an entry point for the transaction.
hieronx and others added 6 commits June 30, 2024 12:32
…nsaction not triggered by CentrifugeRouter (#335)

* fea:(Gateway) Allow partial payments from the gateway balance for transaction not triggered by CentrifugeRouter

* chore: A forgotten file to be renamed
src/token/Tranche.sol Outdated Show resolved Hide resolved
ilinzweilin
ilinzweilin previously approved these changes Jul 1, 2024
src/PoolManager.sol Outdated Show resolved Hide resolved
Base automatically changed from gg/feat/automate-gas-payments to main July 2, 2024 09:07
@peculiarity peculiarity dismissed ilinzweilin’s stale review July 2, 2024 09:07

The base branch was changed.

Copy link

github-actions bot commented Jul 2, 2024

Coverage after merging refactor-tt into main will be

87.68%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Auth.sol100%100%100%100%
   CentrifugeRouter.sol60.16%50%70%62.32%101–102, 102, 102–103, 105, 107–109, 116, 131, 152, 152, 162, 166, 176, 181, 183–184, 184–185, 187–188, 188, 192–193, 193, 195, 195, 201, 206, 208, 225, 34–36, 38–39, 43, 50, 50, 73, 86
   ERC7540Vault.sol91.41%72.73%95.35%93.88%100, 128, 176–178, 203–205, 231–233, 245
   Escrow.sol75%100%66.67%71.43%29–30
   InvestmentManager.sol88.47%83.70%81.82%92.43%112, 230, 239, 256, 283, 312, 334, 366, 370–371, 38–39, 41–42, 490, 493, 524, 536–539, 548–551, 551, 551, 585–586
   PoolManager.sol90.41%91.51%69.23%93.13%186, 188, 188, 188–189, 191, 247, 346, 346, 346–347, 347, 347–348, 371, 52–54, 56–57
   Root.sol94.74%88.89%92.86%97.73%120, 125, 34
src/admin
   Guardian.sol66.67%50%77.78%63.64%21–23, 27, 27, 61
src/factories
   ERC7540VaultFactory.sol71.43%100%66.67%72.73%31, 33–34
   TrancheFactory.sol100%100%100%100%
   TransferProxyFactory.sol100%100%100%100%
src/gateway
   GasService.sol0%0%0%0%25–29, 31–32, 37, 37, 37–38, 38, 38–40, 45, 45, 45–47, 52, 57–58, 60, 60, 60–61, 63, 66, 71
   Gateway.sol89.11%82.56%82.35%93.51%133, 133, 133–134, 136, 169–170, 174, 234, 237–238, 241, 249, 285, 291, 308, 317, 62–65, 67–68, 83, 85
src/gateway/adapters/axelar
   Adapter.sol50%80%33.33%37.50%49–51, 53–54, 59, 59, 59–61, 91, 99
   Forwarder.sol80%100%75%75%38, 40–41
src/token
   ERC20.sol97.17%94.12%100%98.33%170, 69–70
   RestrictionManager.sol96.39%96.43%91.67%97.67%108–109
   Tranche.sol78.08%54.55%83.33%90.91%101–102, 117–118, 129, 135, 141, 141, 141–142, 147, 31, 91

@hieronx hieronx merged commit 64bd403 into main Jul 2, 2024
3 checks passed
@peculiarity peculiarity deleted the refactor-tt branch July 2, 2024 11:48
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