This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
Refactor library usage #2055
Merged
Merged
Refactor library usage #2055
Changes from 42 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
2251e5e
Optimize LibEIP712
abandeali1 7d5276a
Remove LibExchangeSelectors.sol
abandeali1 2e97cfa
Remove LibAssetProxyIds and TestLibConstants
abandeali1 d153ac0
Make remaining functions public
abandeali1 58ee444
Remove remaining hard coded selectors
abandeali1 65f17fd
Make LibEIP712 a library
abandeali1 2427152
Do not inherit libs
abandeali1 b05a2a9
Move FillResults calculations into LibFillResults
abandeali1 a8cd168
Cleanup imports
abandeali1 52dcd99
Add library implementation of SafeMath
abandeali1 6ca9d4e
Convert LibMath to library
abandeali1 28e781d
Convert LibFillResults to library
abandeali1 74a5c8c
Simplify LibEIP712ExchangeDomain to be used only for generating domai…
abandeali1 f45014f
Convert LibOrder and LibZeroExTransaction to libraries
abandeali1 7eb64eb
Update test contracts
abandeali1 ae859fa
Update Exchange contract to use libraries
abandeali1 9b786df
Update test contracts
abandeali1 0df360c
Fix compile errors
abandeali1 245956c
Create test contracts for each exchange lib
abandeali1 31c2b36
Fix build errors in exchange package contracts
abandeali1 2e519b5
Fix build in OrderValidationUtils
abandeali1 24eaf93
Move all exchange-libs tests to separate files
abandeali1 5016d50
Move calculateFillResults tests to exchange-libs package
abandeali1 d6772b4
Fix linting errors
abandeali1 45f229c
Move LibEIP712ExchangeDomain tests to own file
abandeali1 3afce21
Add rrevert to safeDiv in LibSafeMath
abandeali1 88d055c
Make function public method of Compiler class
abandeali1 fb7b51d
Get contracts list from Compiler class to add support for reading all…
abandeali1 e91ba07
Do not overwrite all contracts identifier in compiler.json
abandeali1 ccce7e0
Compile all contracts by default, regenerate boilerplate
abandeali1 0e2616f
Rename _rrevert to rrevert
abandeali1 7cfceeb
Remove unused ABIEncoderV2 pragma
abandeali1 26e4d66
Remove unimplemented functions from interface
abandeali1 d3b8070
Fix TestValidatorWallet by using new LibOrder and LibZeroExTransactio…
abandeali1 dc31294
Move LibExchangeRichErrors to exchange-libs package
abandeali1 1aec5e4
Remove coordinator from CI tests
abandeali1 5543651
Regenerate boilerplate for exchange-libs package
abandeali1 070147d
Fix build errors
abandeali1 c5d4559
Remove generate-exchange-selectors script
abandeali1 2da996f
Hard code chainId in tests
abandeali1 1dae1d2
Rename hashing functions in LibOrder and LibZeroExTransaction
abandeali1 7ac30c5
Merge branch '3.0' into feat/3.0/optimizeConstants
abandeali1 cc3be94
Move MatchedFillResults constants closer to tests where they are util…
abandeali1 8402d21
Update CHANGELOGs
abandeali1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
contracts/asset-proxy/contracts/src/libs/LibAssetProxyIds.sol
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,5 @@ | |
] | ||
} | ||
} | ||
}, | ||
"contracts": ["src/Coordinator.sol", "src/registry/CoordinatorRegistry.sol"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is 🔥. I'm so glad we're getting rid of
LibExchangeSelectors
.