Blockwell

Food Coin Lotto

About

Stats

Public Functions 27
Event Types 9
Code Size 14,410 bytes

Library Use

Uses SafeMath for uint256.

Events (9) keyboard_arrow_up

AddedToGroup Event

Parameters help
groupId
uint8 help
account
address help

ItemAdded Event

Parameters help
token
address help
dropRate
uint256 help
dropAmount
uint256 help

ItemDropped Event

Parameters help
winner
address help
token
address help
dropRate
uint256 help
dropAmount
uint256 help

ItemRemoved Event

Parameters help
token
address help
dropRate
uint256 help
dropAmount
uint256 help

Paused Event

Parameters help
account
address help

RandomRangeSet Event

Parameters help
uint256 help

RemovedFromGroup Event

Parameters help
groupId
uint8 help
account
address help

TokenWin Event

Parameters help
winner
address help
token
address help
value
uint256 help

Unpaused Event

Parameters help
account
address help

Item Struct

Members
token
Erc20 help
dropRate
uint256 help
dropAmount
uint256 help

ADMIN Constant

uint8 help
1

PRIME Constant

uint256 help
1

PRIDE Constant

uint256 help
2

FOOD_COIN Constant

uint256 help
3

EGO Constant

uint256 help
4

EGO_TIME_BASED Constant

uint256 help
5

EGO_TRAINER_TOKEN Constant

uint256 help
6

DAICO Constant

uint256 help
7

ITEM_DROPS Constant

uint256 help
8

ITEM_TOKEN Constant

uint256 help
9

COMMUNITY Constant

uint256 help
10

PAYMENT_RELAY Constant

uint256 help
11

GHOST Constant

uint256 help
12

FORUM Constant

uint256 help
13

BOOK Constant

uint256 help
14

VOTING_BOOK Constant

uint256 help
15

REFUNDS Constant

uint256 help
16

SMART_LICENSE Constant

uint256 help
17

PRIME_DEPLOYER Constant

uint256 help
50

DAICO_DEPLOYER Constant

uint256 help
51

PRIME_GIVER Constant

uint256 help
52

FORUM_DEPLOYER Constant

uint256 help
53

COMMUNITY_DEPLOYER Constant

uint256 help
54

ITEM_DROPS_DEPLOYER Constant

uint256 help
55

BOOK_DEPLOYER Constant

uint256 help
56

SMART_LICENSE_DEPLOYER Constant

uint256 help
57

PROXY_TOKEN Constant

uint256 help
100

PROXY_TOKEN_DEPLOYER Constant

uint256 help
101

PROXY_DEPLOYER Constant

uint256 help
102

PROXY_SWAPPER Constant

uint256 help
103

CROSSCHAIN_TOKEN Constant

uint256 help
104

CROSSCHAIN_DEPLOYER Constant

uint256 help
105

REFUNDS_DEPLOYER Constant

uint256 help
106

RESERVED1 Constant

uint256 help
1001

name Variable

string help

randomRange Variable

uint256 help

randomNonce Variable

uint256 help

token Variable

address help

price Variable

uint256 help

useReturns Variable

bool help

freePlays Variable

uint8 help

bwtype Variable

uint256 help

bwver Variable

uint256 help

usedFreePlays Variable

mapping(address => uint8) help

dropTable Variable

Item[] help
Internal Variable

returnChances Variable

uint256[] help
Internal Variable

returnAmounts Variable

uint256[] help
Internal Variable

groups Variable

Groups.GroupMap help
Internal Variable

_paused Variable

bool help
Internal Variable

Functions Expand All Collapse All

paused keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

removeAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

isAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

dropTableLength keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getDropToken keyboard_arrow_up

Parameters help

Name Type
index
uint256 help

Properties

Visibility help public
Mutability help view

getDropRate keyboard_arrow_up

Parameters help

Name Type
index
uint256 help

Properties

Visibility help public
Mutability help view

getDropAmount keyboard_arrow_up

Parameters help

Name Type
index
uint256 help

Properties

Visibility help public
Mutability help view

getAllDropTokens keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getAllDropRates keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getAllDropAmounts keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getReturnChances keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getReturnAmounts keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

setRandomRange keyboard_arrow_up

Parameters help

Name Type
range
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setFreePlays keyboard_arrow_up

Parameters help

Name Type
plays
uint8 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

addItem keyboard_arrow_up

Parameters help

Name Type
token_
Erc20 help
dropRate
uint256 help
dropAmount
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

removeItem keyboard_arrow_up

Parameters help

Name Type
index
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

playItemDrops keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

play keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

setPrice keyboard_arrow_up

Parameters help

Name Type
newPrice
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setToken keyboard_arrow_up

Parameters help

Name Type
newToken
Erc20 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

useReturns keyboard_arrow_up

Parameters help

Name Type
use
bool help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setReturns keyboard_arrow_up

Parameters help

Name Type
chances
uint256[] help
amounts
uint256[] help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

withdrawTokens keyboard_arrow_up

Parameters help

Name Type
_token
Erc20 help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

withdraw keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.

internal ItemDrops.init keyboard_arrow_up

Parameters help

Name Type
sender
address help

Properties

Visibility help internal
Mutability help transaction

internal ItemDrops.payment keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help internal
Mutability help transaction

internal ItemDrops.playReturns keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help internal
Mutability help transaction

internal ItemDrops.random keyboard_arrow_up

Parameters help

Name Type
max
uint256 help

Properties

Visibility help internal
Mutability help transaction

internal AdminGroup._addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help internal
Mutability help transaction

internal AdminGroup._add keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction

internal AdminGroup._remove keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction

internal AdminGroup._contains keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help view

internal BasicPausable.constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help internal
Mutability help transaction

internal BasicPausable._pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help internal
Mutability help transaction

internal BasicPausable._unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help internal
Mutability help transaction