neu-fi / regen-bingo

Monorepo for both backend and contract developments of Regen Bingo!
https://regen.bingo
2 stars 1 forks source link

Use the package for solidity-datetime #72

Closed hantuzun closed 1 year ago

hantuzun commented 1 year ago

We've used the library from: https://github.com/RollaProject/solidity-datetime

Let's use this https://www.npmjs.com/package/@quant-finance/solidity-datetime. Make sure that we use the exact version: 2.2.0. We don't want to upgrade to 2.2.1 etc. if this untrusted quant-finance pushes an update. This could be done by setting the version as "2.2.0". More information here: https://maxleiter.com/blog/pin-dependencies

When this update is done, we would be removing the source files from the repository and importing the libraries as we do with openzeppelin libraries.