-
Notifications
You must be signed in to change notification settings - Fork 11
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
General repo improvements #109
Conversation
vzotova
commented
Aug 7, 2023
•
edited
Loading
edited
- fancier event check
- solhint rules + hook
- prettier action + hook
eef8522
to
2a57578
Compare
assert event["startTimestamp"] == start | ||
assert event["endTimestamp"] == end | ||
assert event["cost"] == fee | ||
assert tx.events == [ |
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.
love this way of checking events 🚀
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.
🎸
_precomputed.pointEZyCoord | ||
), // zE_y |
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.
Minor suggestion where I disagree with the linter.
_precomputed.pointEZyCoord | |
), // zE_y | |
_precomputed.pointEZyCoord // zE_y | |
), |
Some similar instances in later lines in this file.
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.
Looks like there is open issue in prettier for that prettier/prettier#807
We can add hack for ignoring this line for prettier or just accept that. Wdyt?
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.
Not a huge issue to me. If the hack is easy great, if it's more involved, don't bother. Up to you really.
assert event["stakingProvider"] == staking_provider | ||
assert event["fromAmount"] == 0 | ||
assert event["toAmount"] == value | ||
assert events == [ |
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.
So much cleaner - 🚀
uint256 constant PRECOMPUTED_DATA_SIZE = (20 * BIGNUM_SIZE) + 32 + 20 + 5; | ||
uint256 internal constant BIGNUM_SIZE = 32; | ||
uint256 internal constant POINT_SIZE = 33; | ||
uint256 internal constant SIGNATURE_SIZE = 64; |
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.
Yeah? Not DER encoded?
assert event["fromAmount"] == value // 2 | ||
assert event["toAmount"] == authorization | ||
assert events == [ | ||
taco_application.AuthorizationInvoluntaryDecreased( |
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.
badass. Love seeing events represented this way.
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.
As always, some of the nitty-gritty of solidity is a little tough for me to gork quickly, but I can verify that there's nothing here that looks crazy. :-)