Skip to content

mcpiatkowski/vyper-coinflip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinflip

Simple coinflip game written in Vyper using Ape test framework.

Test Coinflip deployed to: 0x5b5B86b38eEcC921fcE89276C2a59d1f5cc774D3

WARNING

The contract works but I do not recommend using it that way. VRF functionalites are splitted into separate transactions. Please refer to this issue.

Ideally VRF consumer should be a part of the Coinflip contract.

Contract deployed on the above address does not reset the pot and does not assign requested random number to the internal random number. Code in the repo already contemplates both.

Order of calls

To verify the coinflip works you can call the contract in the following order:

  • start
  • join
  • flip
  • get_random_number
  • resolve

Resources

Faucets

Sepolia

Docs

Other

About

Simple coinflip game written in Vyper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published