-
Notifications
You must be signed in to change notification settings - Fork 17
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
Local development #12
Conversation
@HristiyanG I suggest I prepare a payout table for "all" scenarios in a spreadsheet, so we can have full coverage of paths. Would you be able to pick it up from there and add scenarios in |
@thecryptofruit sounds like a great idea. I already have implemented some withdrawal scenarios in #16 . Have a look and advice what's missing. I am closing this one as i do not think this is required anymore. |
Hey Hris, This one's still needed and still WIP. Will get to it next week. Thanks, |
c1d8ed6
to
47ddf58
Compare
47ddf58
to
4f51b68
Compare
|
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.
Great stuff! 👍
Ok, if there are dependencies between tests that require them to run in a particular order, I think we should remove the dependencies as tests are intended to be independent. I noticed within the test files, there are a number of suite level variables that each test used. IMO this is a smell as you end up with cross test coupling. I think this is probably for a separate PR though. |
Anything else needed to merge? |
This PR adds a comprehensive local build that:
This local build should act as a pre-commit build to check that a push is mergeable. Instructions are in the README.
A few things to note:
solhint
didn't like the method naming convention for payment methods, e.g.,..._ETH_TKN_...
since it breaks naming conventions as defined at https://docs.soliditylang.org/en/develop/style-guide.html#function-names. I've renamed across the board to be camel case and this will require a redeployment and some changes to the app frontend.solhint
warnings that I need some help with. I'd like to get down to zero warnings either by fixing or by ignoring. Right now, the build is set to allow the 32 warnings and no more but ideally this should be set to 0.2_test_fullpath_with_permit.js
is sitting at >4200 lines after prettier's formatting.I'm not sure I understand the reason for the numeric prefixes on the test files. I think their names could be a bit more explanatory / consistent.
For reference, the outstanding warnings are: