-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2do crypto-roll
47 lines (44 loc) · 1.99 KB
/
2do crypto-roll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2do
====
- use indexed for Rolled event to filter only event for current user?
- change vars to memory to speed things up?
- setLoading update if transaction fails/succeeds (test on testnet)
- upload to rinkeby for testing
- send to reddit and discord for feedback
- note about randomess not being perfect at the moment (in how it works)
- show animation until transaction completes and roll number received
- balance on top right not always updating when connecting metamask
- address showing on top right w/o wallet connected
. Change colors, logo, prize rainbow, spin number animation
- github commit
- design UI
- set colors
- remove unused code in app and contract
- show contract balance in proper token
- change staking amount to $1 equivalent
- dropdown to change L1/L2 chain
- animation of rolling after staking
- send pot minus 1% to winner
- send 1% of staking when someone wins pot
- random charchter generator in constructor and after winning
- change logo and footer
- add timestamp to staking events
- support multiple networks (arbitrum, optimism, polygon, harmony, avalanche, binance, etc...)
- set keys before publishing
- debug to false
- verify contracts
- VRF Orlace https://blog.chain.link/random-number-generation-solidity/#:~:text=Random%20number%20generation%20(RNG)%20in%20solidity%20must%20be%20done%20by,to%20the%20determinism%20of%20blockchains.
- get random string from oracle (https://stackoverflow.com/questions/48848948/how-to-generate-a-random-number-in-solidity/67332959#67332959)
- vars https://docs.soliditylang.org/en/v0.8.13/cheatsheet.html?highlight=global%20variables#global-variables
done
=====
- receive contract function
- modal window "how it works" button
- playerWon to msg.sender and show only to winner
- Clear playerWon on stake()
- remove ExampleExternalContract from deploy
- Generate new random on win
- correct "your roll" to show users roll
- reduce ETH sent
- disable button when not on localhost and wallet no connected
- setLoading changes before transaction returns (on rinkeby)