Skip to content

Instantly share code, notes, and snippets.

@PatrickAlphaC
Created July 29, 2021 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrickAlphaC/53848768b3ca6c747cf1166ccb2f65ec to your computer and use it in GitHub Desktop.
Save PatrickAlphaC/53848768b3ca6c747cf1166ccb2f65ec to your computer and use it in GitHub Desktop.
Multi-word Job Spec
{
"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