Skip to content

A simple contract which takes in a Unix-timestamp, and returns which Week of the Macro Fellowship it exists in

Notifications You must be signed in to change notification settings

0xMacro/macro_week_finder

Repository files navigation

Macro Week Finder

A simple contract for finding, given a date in Unix-timestamp form, outputting what Week of the fellowship this date lies in

Project Setup

Install all needed dependencies:

npm install

Ensure your project is setup correctly by running:

npx hardhat compile

Now you're all setup to begin writing tests and smart contracts! Check out the package.json's scripts section for useful commands

Useful Commands

Try running some of the following commands:

npx hardhat help
npx hardhat compile              # compile your contracts
npx hardhat test                 # run your tests
npm run test                     # watch for test file changes and automatically run tests
npm run lint-fix                 # run ESLint and write an automatable improvements to your code
npx hardhat coverage             # generate a test coverage report at coverage/index.html
REPORT_GAS=true npx hardhat test # run your tests and output gas usage metrics
npx hardhat node                 # spin up a fresh in-memory instance of the Ethereum blockchain
npx prettier '**/*.{json,sol,md,ts,js}' --write # format your Solidity and TS files

About

A simple contract which takes in a Unix-timestamp, and returns which Week of the Macro Fellowship it exists in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published