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

Merge Release 1 back into master #5328

Merged
merged 28 commits into from
Oct 15, 2020
Merged

Conversation

nambrot
Copy link
Contributor

@nambrot nambrot commented Oct 15, 2020

Description

Branch nambrot/master-into-release-1 represents a merge of master into release/celo-core-contracts/1. The reason why it is separate is to make obvious the merge conflict resolution that happened since we want a clean merge-commit (instead of the typical squash merge). Thus the recommended sequence is:

  • Branch nambrot/master-into-release-1 from release/celo-core-contracts/1
  • Merge master into nambrot/master-into-release-1 without resolving conflicts
  • Resolve conflicts in follow-up commits to make clear how they were resolved
  • Open this PR to allow reviewers to review those merge resolutions
  • Upon approval of this PR, close it, update release/celo-core-contracts/1 to nambrot/master-into-release-1
  • Open another PR that represents the merge of release/celo-core-contracts/1 to master

Listed in #4812

The relevant diff to review becomes https://github.com/celo-org/celo-monorepo/pull/5328/files/a675fd719f7fe5ddd676affd69b263f21508b85f..1907dc071c5bf0fe4aaf1e60653523a4bdae66ed (i.e. the commits after the merge commit)

yorhodes and others added 24 commits August 28, 2020 13:40
upgrade next.js (and by extention serialize-javascript) to latest version

some ts warnings/ errors

on both web and reserver

* ran `yarn dev`, `yarn build` (ts compile), `next build`, opened locally and deployed to staging

fixes #4675

_Brief explanation of why these changes are/are not backwards compatible._
### Description

Add yarn resolution for `bl` because of security vulnerability
See https://www.npmjs.com/advisories/1555

### Other changes

None

### Tested

Waiting for test to pass on CircleCI.

### Related issues

Discussed on Slack

### Backwards compatibility

Not entirely sure since there was some packages depending on different major versions of `bl`:
-  `^1.0.0`
-  `^3.0.0`
-  `^4.0.0`
#4958)

* ozaudit [L05] Interfaces are missing functions present in their implementations

* Mock contracts can't extend interface if not fully implemented

* getVersionNumber is only in ICeloVersionedContract interface
* Remove onlyWhenNotFrozen on view functions

* Bump patch versions

* Implement ICeloVersionedContract in EpochRewards

* Remove freezable from election
* Open 5048 for deleteElement lib

* Open 5049 for UsingRegistry initialize

* Open 5050 for target gold > 15 years

* Open 5051 for revoke approval investigation

* Open 5052 for parameter minimums

* Open 5053 for upvote edge case

* Open 5054 for attestations view calls

* Open 5055 for linked list optimization

* Open 5056 for governance proposal vote total optimization

* Open 5057 for governance proposal execution and meta transaction standardization

* Open 5059 for linkedlist isvaluebetween optimization

* Open 5068 for linked list value update optimization

* Open 5069 for empty indices optimization

* Open 5070 for governance index out of bounds
#4914)

* Clarify sender on BitmapSetForInterval event

* Fix event test
* Require result value and add revert messages

* Fix build error

* Simplify stabletoken registry optimization
* Add revert messages to all require statements

* Bump contract versions
* Remove extraneous imports from SortedOracles

* Remove extraneous imports from Attestations

* Remove extraneous imports from ReleaseGold

* Remove extraneous imports from Validators
…for all contracts (#5032)

* Pin solc compiler version to 0.5.13

* Bump solc version in certora test
* L16

* testing

* [L16] Transfer of CELO may unexpectedly fail
* [L13] Not using the SafeMath library

* Fix ++ typo

* Add versioning

* Fix inheritance graph

* Further fix rebase
* L06: Lack of Validation

* Update verions GoldToken/EpochRewards

* EpochRewards carbon offsetting partner CAN be addr(0)

* take out no-op checks
* L10: Missing Docstrings

* address PR review
* MetaTransactionWallet upgrades

M03: Check for unused data in executeTransactions data param
index events
emit event when receiving ether

* fix linting issues

* [L12] MetaTransactionWallet does not return transactions outputs

* Address PR comments

* linting and cleanup

* index nonce in MetaTransactionExecution event
… governance" (#4706) into "oz-prerelease" (#5194)

* Cherry pick 8a8b822

* Resolve merge conflicts from cherry-pick

* Remove double-specification of ICeloVersionedContract

Co-authored-by: Asa Oines <[email protected]>
* Remove fixiditylib external version getter and proxy

* Change release reference to release 0

* Add FixidityLib to excluded from version check
@nambrot nambrot changed the base branch from master to release/celo-core-contracts/1 October 15, 2020 17:22
@nambrot nambrot changed the base branch from release/celo-core-contracts/1 to master October 15, 2020 17:26
@@ -724,7 +724,7 @@ exports[`About renders 1`] = `
/>
</audio>
</div>

Copy link
Member

Choose a reason for hiding this comment

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

someday id like to figure out why there are these whitespace changes sometimes on this files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's my VS Code config that automatically delete trailing whitespace (which we really should have everywhere)

@nambrot nambrot changed the title Nambrot/master into release 1 Merge Release 1 back into master Oct 15, 2020
@nambrot nambrot force-pushed the nambrot/master-into-release-1 branch from 7453623 to 511cd08 Compare October 15, 2020 19:51
Copy link
Contributor

@yorhodes yorhodes left a comment

Choose a reason for hiding this comment

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

hype

* @notice Returns the storage, major, minor, and patch version of the contract.
* @return The storage, major, minor, and patch version of the contract.
*/
* @notice Returns the storage, major, minor, and patch version of the contract.
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems errant?

@@ -37,7 +37,7 @@ const BAKLAVA_FROM = '0x0Cc59Ed03B3e763c02d54D695FFE353055f1502D'
const BAKLAVASTAGING_FROM = '0x4588ABb84e1BBEFc2BcF4b2296F785fB7AD9F285'

// Gas limit is doubled for initial contract deployment.
const gasLimit = argv.reset ? 20000000 : 10000000
const gasLimit = argv.reset ? 20000000 : 12500000
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be 13M right?

Copy link
Contributor

Choose a reason for hiding this comment

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

this can be a followup
I think I had to increase this for the deploy to work

@nambrot
Copy link
Contributor Author

nambrot commented Oct 15, 2020

Ok with the approval, I will now update release/celo-core-contracts/1 to nambrot/master-into-release-1 (da72e7e to 511cd08)

@nambrot nambrot merged commit 5419749 into master Oct 15, 2020
@nambrot nambrot deleted the nambrot/master-into-release-1 branch December 21, 2020 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants