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

Prepare for deploying the contracts and build artifacts to npmjs #62

Merged
merged 6 commits into from
Apr 15, 2020

Conversation

moodysalem
Copy link
Contributor

  • Updated waffle to fix the revert error
  • solcVersion is now compilerVersion
  • added metadata to package json
  • for some reason the gas estimates have changed, but i doubt this means anything. the bytecode that compiling produces has not changed.

@MicahZoltu
Copy link

I still recommend #56 be included in the release prep, though it was closed so I assume that means it was discussed and decided against.

@NoahZinsmeister
Copy link
Contributor

yes @MicahZoltu , we (and more importantly our auditors) are more comfortable with ^0.5 than ^0.6, and 0.5.17 isn't meaningfully different from 0.5.16 in this case.

Copy link
Contributor

@NoahZinsmeister NoahZinsmeister left a comment

Choose a reason for hiding this comment

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

@moodysalem looks good! the one thing i'm curious about is if this waffle version bump means that we no longer need the overrides hack (https://github.com/Uniswap/uniswap-v2-core/blob/master/test/shared/fixtures.ts#L15), which is used in a few of the test files to fix failures due to gas misestimation

@moodysalem
Copy link
Contributor Author

moodysalem commented Apr 15, 2020

Unfortunately we still need it in the pair tests but looks like it's not needed in the fixtures. Since the gas estimates are wrong I went ahead and fixed the two gas tests to check actual gas used

EDIT: I take it back, for some reason not specifying overrides in fixtures breaks one of the tests in node v10... but only on the github actions vm. I can't get it to fail with the latest node v10 locally. Going to assume it has something to do with the evm timestamps in that test and just revert the fixtures changes.

@moodysalem moodysalem merged commit 0897c5b into master Apr 15, 2020
@moodysalem moodysalem deleted the prepare-for-npm branch April 15, 2020 13:01
@moodysalem
Copy link
Contributor Author

Deployed v1.0.0-beta.0 artifacts to npm
https://unpkg.com/browse/@uniswap/v2-core@1.0.0-beta.0/

@NoahZinsmeister
Copy link
Contributor

79378 -> 73462 is a nice surprise!

0xBeaver pushed a commit to 0xBeaver/uniswap-v2-core that referenced this pull request Jun 25, 2021
Prepare for deploying the contracts and build artifacts to npmjs
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