Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

pancakeswap/lottery-contract

Repository files navigation

Lottery-Contract


Repository setup

Install

To install the needed packages run:

yarn or npm install

Build

To build the smart contracts run:

yarn build or npm run build

Test

To run the tests for the smart contracts run:

yarn test or npm run test

Test coverage

For the test converge of the contracts run:

yarn cover or npm run cover

There are multiple mock contracts that have been created for testing purposes. These have been excluded from the coverage. For more information check the .solcover.js.

Deploy

To deploy the contracts locally run:

yarn deploy:local or npm run deploy:local

Note that deploying the contracts locally does not require any inputs.

Design Notes

The Lottery and LotteryNFT contracts both inherit from a contract called Testable. This contract allows for simple time manipulation for testing purposes. For a non-local deployment the address of this contract can simply be set to 0 in the constructor and the contracts will use the current block.timestamp.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •