Beispiel #1
0
CELERYD_PREFETCH_MULTIPLIER = 1
CELERYD_MAX_TASKS_PER_CHILD = 1000
CELERY_LOCK_EXPIRE = 60

# IPFS
IPFS_HOST = 'http://ipfs'  # 'ipfs'
IPFS_PORT = 5001

# LMSR Market Maker Address
LMSR_MARKET_MAKER = '9561c133dd8580860b6b7e504bc5aa500f0f06a7'

# GnosisDB Contract Addresses
ETH_EVENTS = [{
    'ADDRESSES': ['cfeb869f69431e42cdb54a4f4f105c19c080a601'],
    'EVENT_ABI':
    load_json_file(abi_file_path('CentralizedOracleFactory.json')),
    'EVENT_DATA_RECEIVER':
    'chainevents.event_receivers.CentralizedOracleFactoryReceiver',
    'NAME':
    'centralizedOracleFactory',
    'PUBLISH':
    True,
}, {
    'ADDRESSES': ['67b5656d60a809915323bf2c40a8bef15a152e3e'],
    'EVENT_ABI': load_json_file(abi_file_path('EventFactory.json')),
    'EVENT_DATA_RECEIVER': 'chainevents.event_receivers.EventFactoryReceiver',
    'NAME': 'eventFactory',
    'PUBLISH': True,
}, {
    'ADDRESSES': ['e982e462b094850f12af94d21d470e21be9d0e9c'],
    'EVENT_ABI':
Beispiel #2
0
# ------------------------------------------------------------------------------
# Tournament settings
# ------------------------------------------------------------------------------
TOURNAMENT_TOKEN = os.environ['TOURNAMENT_TOKEN']
TOURNAMENT_TOKEN_ISSUANCE = os.environ.get('TOURNAMENT_TOKEN_ISSUANCE', '200000000000000000000')

ETHEREUM_DEFAULT_ACCOUNT = os.environ['ETHEREUM_DEFAULT_ACCOUNT']

# ------------------------------------------------------------------------------
# GNOSIS ETHEREUM CONTRACTS
# ------------------------------------------------------------------------------
ETH_EVENTS = [
    {
        'ADDRESSES': [os.environ['CENTRALIZED_ORACLE_FACTORY']],
        'EVENT_ABI': load_json_file(abi_file_path('CentralizedOracleFactory.json')),
        'EVENT_DATA_RECEIVER': 'chainevents.event_receivers.CentralizedOracleFactoryReceiver',
        'NAME': 'centralizedOracleFactory',
        'PUBLISH': True,
    },
    {
        'ADDRESSES': [os.environ['EVENT_FACTORY']],
        'EVENT_ABI': load_json_file(abi_file_path('EventFactory.json')),
        'EVENT_DATA_RECEIVER': 'chainevents.event_receivers.EventFactoryReceiver',
        'NAME': 'eventFactory',
        'PUBLISH': True,
    },
    {
        'ADDRESSES': [os.environ['MARKET_FACTORY']],
        'EVENT_ABI': load_json_file(abi_file_path('StandardMarketFactory.json')),
        'EVENT_DATA_RECEIVER': 'chainevents.event_receivers.MarketFactoryReceiver',