Skip to content

mddczh/smart-contract-lottery

Repository files navigation

可验证随机抽奖合约

关于

此代码用于创建一个可验证随机的智能合约彩票。

我们希望它做什么?

  1. 用户应该能够通过支付票价来参加抽奖。票价将成为获胜者的奖金。
  2. 彩票应在一定时间后自动和程序化地抽取获胜者。
  3. Chainlink VRF 应生成一个可验证的随机数。
  4. Chainlink Automation 应定期触发彩票抽奖。

测试

  1. Write deploy script
    1. Note, these will not work on zkSync (as of recording)
  2. Write tests
    1. Local chain
    2. Forked testnet
    3. Forked mainnet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published