An open API service indexing awesome lists of open source software.

https://github.com/gnosis/conditional-tokens-bot


https://github.com/gnosis/conditional-tokens-bot

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

          

# Conditional Tokens bot

This is a bot to get events from Omen contiditional tokens smart contract and from Omen thengraph explorer and push them into social networks.

The bot supports `mainnet` and `rinkeby` Ethereum networks.

## Configure

- **ETH_NODE**: The Ethereum websocket to watch contracts.
- **BLOCK_REORG_LIMIT**: Previous number of blocks to process to avoid reorgs.
- **AVERAGE_BLOCK_TIME**: Average block time to look for previous blocks on timestamp queries.
- **CT_ADDRESS**: The Conditional Tokens contract address for resolved markets events.
- **FIXED_PRODUCT_MM_FACTORY_ADDRESS**: The Fixed Product Market Maker factory contract address for new markets creation events.
- **REALITIO_CONTRACT_ADDRESS**: The Realitio contract address for arbitration requests notification events.
- **THE_GRAPH_OMEN**: The Omen subgraph API endpoint.
- **SLACK_WEBHOOK_URL** (optional): Your Slack Incomming Webhook endpoint to push messages. If it's not setted the message will be send to the standard output.
- **TWITTER_CONSUMER_KEY** (optional): The Consumer Twitter Api key.
- **TWITTER_CONSUMER_SECRET** (optional): The Consumer Twitter Api secret.
- **TWITTER_ACCESS_TOKEN** (optional): The Twitter API Access Token.
- **TWITTER_ACCESS_TOKEN_SECRET** (optional): The Twitter API Access Token Secret.
- **JOB_GET_TRADE_MINUTES** (optional): The number of minutes for the job to ask for new trades on every Market Makers events. Default value `5` minutes.