Created
July 29, 2021 17:48
-
-
Save PatrickAlphaC/53848768b3ca6c747cf1166ccb2f65ec to your computer and use it in GitHub Desktop.
Multi-word Job Spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "multi-word", | |
"initiators": [ | |
{ | |
"id": 139, | |
"jobSpecId": "bcf76dc2-7fd4-484f-ab68-1d3f239cd2c3", | |
"type": "runlog", | |
"params": { | |
"address": "0x7eb318734142a6375787379de2fa202e4058d03f" | |
} | |
} | |
], | |
"tasks": [ | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "httpget", | |
"params": { | |
"get": "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR" | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "jsonparse", | |
"params": { | |
"path": [ | |
"USD" | |
] | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "multiply", | |
"params": { | |
"times": 100 | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "ethuint256" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "resultcollect" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "httpget", | |
"params": { | |
"get": "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR" | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "jsonparse", | |
"params": { | |
"path": [ | |
"EUR" | |
] | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "multiply", | |
"params": { | |
"times": 100 | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "ethuint256" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "resultcollect" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "httpget", | |
"params": { | |
"get": "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR" | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "jsonparse", | |
"params": { | |
"path": [ | |
"JPY" | |
] | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "multiply", | |
"params": { | |
"times": 100 | |
} | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "ethuint256" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "resultcollect" | |
}, | |
{ | |
"jobSpecId": "bcf76dc27fd4484fab681d3f239cd2c3", | |
"type": "ethtx", | |
"confirmations": 1, | |
"params": { | |
"abiEncoding": [ | |
"bytes32", | |
"bytes32", | |
"bytes32", | |
"bytes32" | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment