Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Daltonic/dapplottery
/ functions
Functions
80 in github.com/Daltonic/dapplottery
⨍
Functions
80
◇
Types & classes
0
↓ 7 callers
Function
notifyUser
(msg)
services/blockchain.jsx:164
↓ 6 callers
Function
getEtheriumContract
()
services/blockchain.srr.js:9
↓ 6 callers
Function
reportError
(error)
services/blockchain.jsx:160
↓ 4 callers
Function
generateLuckyNumbers
(count)
test/DappLottery.test.js:14
↓ 4 callers
Function
getEthereumContract
()
services/blockchain.jsx:34
↓ 4 callers
Function
getLottery
(id)
services/blockchain.srr.js:23
↓ 4 callers
Function
truncate
(text, startChars, endChars, maxLength)
services/blockchain.jsx:168
↓ 3 callers
Function
fromWei
(num)
services/blockchain.srr.js:7
↓ 3 callers
Function
getParticipants
(id)
services/blockchain.srr.js:38
↓ 3 callers
Function
scrollToEnd
()
components/Chat.jsx:47
↓ 3 callers
Function
toWei
(num)
test/DappLottery.test.js:4
↓ 3 callers
Function
toWei
(num)
services/blockchain.jsx:32
↓ 2 callers
Function
formatDate
(timestamp)
services/blockchain.srr.js:47
↓ 2 callers
Function
getLotteryResult
(id)
services/blockchain.srr.js:33
↓ 2 callers
Function
getLuckyNumbers
(id)
services/blockchain.srr.js:28
↓ 2 callers
Function
getPurchasedNumbers
(id)
services/blockchain.srr.js:42
↓ 2 callers
Function
structureLotteries
(lotteries)
services/blockchain.srr.js:73
↓ 2 callers
Function
toWei
(num)
scripts/seeder.js:5
↓ 1 callers
Function
addDays
(days)
test/DappLottery.test.js:7
↓ 1 callers
Function
addDays
(days)
scripts/seeder.js:15
↓ 1 callers
Function
buyTicket
(id, luckyNumberId, ticketPrice)
services/blockchain.jsx:101
↓ 1 callers
Function
checkAuthState
(CometChat)
services/chat.jsx:51
↓ 1 callers
Function
createAppartment
({ title, description, prize, ticketPrice, expiresAt, image })
scripts/seeder.js:58
↓ 1 callers
Function
createJackpot
({ title, description, imageUrl, prize, ticketPrice, expiresAt })
services/blockchain.jsx:79
↓ 1 callers
Function
createNewGroup
(CometChat, GUID, groupName)
services/chat.jsx:59
↓ 1 callers
Function
exportLuckyNumbers
(id, luckyNumbers)
services/blockchain.jsx:144
↓ 1 callers
Function
fromWei
(num)
test/DappLottery.test.js:5
↓ 1 callers
Function
generateLuckyNumbers
(count)
components/Generator.jsx:38
↓ 1 callers
Function
getGroup
(CometChat, GUID)
services/chat.jsx:71
↓ 1 callers
Function
getLotteries
()
services/blockchain.srr.js:19
↓ 1 callers
Function
getMessages
(CometChat, GUID)
services/chat.jsx:90
↓ 1 callers
Function
getParams
()
scripts/seeder.js:22
↓ 1 callers
Function
handlePurchase
(luckyNumberId)
components/DrawTime.jsx:19
↓ 1 callers
Function
initCometChat
(CometChat)
services/chat.jsx:7
↓ 1 callers
Function
isWallectConnected
(CometChat)
services/blockchain.jsx:41
↓ 1 callers
Function
joinGroup
(CometChat, GUID)
services/chat.jsx:79
↓ 1 callers
Function
listenForMessage
(CometChat, listenerID)
services/chat.jsx:115
↓ 1 callers
Function
logOutWithCometChat
(CometChat)
services/chat.jsx:43
↓ 1 callers
Function
loginWithCometChat
(CometChat, UID)
services/chat.jsx:21
↓ 1 callers
Function
main
()
scripts/seeder.js:49
↓ 1 callers
Function
main
()
scripts/deploy.js:4
↓ 1 callers
Function
onReset
()
pages/create.jsx:52
↓ 1 callers
Function
performDraw
(id, numOfWinners)
services/blockchain.jsx:123
↓ 1 callers
Function
sendMessage
(CometChat, receiverID, messageText)
services/chat.jsx:105
↓ 1 callers
Function
shuffleArray
(array)
scripts/seeder.js:7
↓ 1 callers
Function
signUpWithCometChat
(CometChat, UID)
services/chat.jsx:31
↓ 1 callers
Function
structuredNumbers
(participants)
services/blockchain.srr.js:96
↓ 1 callers
Function
structuredParticipants
(participants)
services/blockchain.srr.js:89
↓ 1 callers
Function
structuredResult
(result)
services/blockchain.srr.js:107
Function
AuthChat
()
components/AuthChat.jsx:7
Function
Chat
({ id })
components/Chat.jsx:8
Function
CometChatNoSSR
()
components/CometChatNoSSR.jsx:7
Function
Countdown
({ timestamp })
components/Countdown.jsx:3
Function
Create
()
pages/create.jsx:9
Function
DrawTime
({ jackpot, luckyNumbers, participants })
components/DrawTime.jsx:11
Function
Draws
({ lottery, lotteryNumbers, numbersPurchased })
pages/jackpots/[jackpotId].jsx:13
Function
Generator
()
components/Generator.jsx:9
Function
Header
()
components/Header.jsx:8
Function
Home
({ jackpots })
pages/index.jsx:6
Function
Jackpot
({ jackpot })
components/Jackpots.jsx:25
Function
Jackpots
({ jackpots })
components/Jackpots.jsx:5
Function
Message
({ msg, isCurrentUser, time, uid })
components/Chat.jsx:92
Function
MyApp
({ Component, pageProps }: AppProps)
pages/_app.tsx:10
Function
Result
({ jackpot, participants, result })
components/Result.jsx:9
Function
Results
({ lottery, participantList, lotteryResult })
pages/results/[resultId].jsx:10
Function
SubHeader
()
components/SubHeader.jsx:6
Function
Winners
()
components/Winners.jsx:9
Function
connectWallet
()
services/blockchain.jsx:69
Function
getServerSideProps
()
pages/index.jsx:22
Function
getServerSideProps
(context)
pages/jackpots/[jackpotId].jsx:50
Function
getServerSideProps
(context)
pages/results/[resultId].jsx:37
Function
handleGroupCreation
()
components/DrawTime.jsx:37
Function
handleGroupJoin
()
components/DrawTime.jsx:56
Function
handleLogin
()
components/AuthChat.jsx:32
Function
handleSignUp
()
components/AuthChat.jsx:13
Function
handleSubmit
(e)
components/Winners.jsx:17
Function
handleSubmit
(e)
components/Generator.jsx:17
Function
handleSubmit
(e)
pages/create.jsx:20
Function
onGenerate
()
components/DrawTime.jsx:76
Function
onSendMessage
(e)
components/Chat.jsx:31