Skip to content

Dexaran/ImmortalLottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Immortal Lottery

This repo will hold source codes of the Immortal Lottery Project.

If you have any feedback or questions - feel free to create a new issue in this repo. We will use issues as the main thread for Immortal Lottery communications at this stage.

Deployment

  • Entropy: 0x857803da626177C946012461382685d323201F32
  • Lottery (mainnet CLO; 1 hour deposit; 1 hour reveal phase): 0xE5412b4420f69A5509e2bE93A5AEA0F666EEF20E

Deploying custom lottery

  1. Compile & deploy the Lottery contract.
  2. Compile & deploy the Entropy contract.
  3. Call the configure function of the Lottery contract and set the (1) min deposit amount in WEI, (2) maximum amount of deposits allowed from one account (recommended 2 to 5 - higher value causes higher GAS during winner calculation), (3) duration of the deposit phase in seconds, (4) duration of the reveal phase in seconds.
  4. Call the set_entropy_contract() function of the Lottery contract and connect it with the Entropy contract address.
  5. Call the set_lottery_contract() function of the Entropy contract and connect it with the Lottery contract address.

Testnet deployment

Signup contract: 0xbCa749885f7A75C7777a9F111f2820F6a3a5bE72

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published