Composite adapter to handle Augur market creation and resolution
The adapter takes the following environment variables:
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | ETHEREUM_RPC_URL |
RPC URL for the ETH node | ||
ETHEREUM_CHAIN_ID |
The chain id to connect to | 1 | ||
✅ | PRIVATE_KEY |
Private key of the account to use for on-chain txs | ||
THERUNDOWN_* |
Configuration variables for The Rundown: See README | |||
SPORTSDATAIO_* |
Configuration variables for Sportsdataio: See README |
See the Composite Adapter README for more information on how to get started.
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | method |
The method to call | resolve , create |
|
✅ | sport |
The sport to call for | NFL , NBA , MLB |
|
✅ | contractAddress |
The contract address to interact with | ||
✅ | daysInAdvance |
Create only: number of days in advance to create events for | ||
✅ | startBuffer |
Create only: number of seconds in the future the event has to be to create | ||
affiliateIds |
Create only: prioritized array of affiliate ids to use |
{
"id": "1",
"data": {
"method": "create",
"sport": "NBA",
"daysInAdvance": 7,
"startBuffer": 60,
"affiliateIds": [9, 3],
"contractAddress": "0xB0bA59d42Fb0f9305F06FC0e2C4e2fe64A5bd39F"
}
}
{
"jobRunID": "278c97ffadb54a5bbb93cfec5f7b5503",
"data": {},
"statusCode": 200
}