https://github.com/gnosis/conditional-tokens-bot
https://github.com/gnosis/conditional-tokens-bot
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/gnosis/conditional-tokens-bot
- Owner: gnosis
- Created: 2020-08-10T18:02:18.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2021-02-03T17:49:59.000Z (over 4 years ago)
- Last Synced: 2025-10-09T08:06:38.494Z (1 day ago)
- Language: JavaScript
- Size: 296 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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.