Advertisement
Guest User

OracleWithCallback

a guest
Sep 27th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.76 KB | None | 0 0
  1. [
  2.   {
  3.     "inputs": [
  4.       {
  5.         "internalType": "contract IOracleAggregator",
  6.         "name": "_oracleAggregator",
  7.         "type": "address"
  8.       },
  9.       {
  10.         "internalType": "uint256",
  11.         "name": "_emergencyPeriod",
  12.         "type": "uint256"
  13.       }
  14.     ],
  15.     "stateMutability": "nonpayable",
  16.     "type": "constructor"
  17.   },
  18.   {
  19.     "anonymous": false,
  20.     "inputs": [
  21.       {
  22.         "indexed": false,
  23.         "internalType": "string",
  24.         "name": "metadata",
  25.         "type": "string"
  26.       }
  27.     ],
  28.     "name": "MetadataSet",
  29.     "type": "event"
  30.   },
  31.   {
  32.     "anonymous": false,
  33.     "inputs": [
  34.       {
  35.         "indexed": true,
  36.         "internalType": "uint256",
  37.         "name": "timestamp",
  38.         "type": "uint256"
  39.       },
  40.       {
  41.         "indexed": false,
  42.         "internalType": "uint256",
  43.         "name": "result",
  44.         "type": "uint256"
  45.       }
  46.     ],
  47.     "name": "Provided",
  48.     "type": "event"
  49.   },
  50.   {
  51.     "inputs": [],
  52.     "name": "EMERGENCY_PERIOD",
  53.     "outputs": [
  54.       {
  55.         "internalType": "uint256",
  56.         "name": "",
  57.         "type": "uint256"
  58.       }
  59.     ],
  60.     "stateMutability": "view",
  61.     "type": "function"
  62.   },
  63.   {
  64.     "inputs": [
  65.       {
  66.         "internalType": "uint256",
  67.         "name": "_timestamp",
  68.         "type": "uint256"
  69.       }
  70.     ],
  71.     "name": "_callback",
  72.     "outputs": [],
  73.     "stateMutability": "nonpayable",
  74.     "type": "function"
  75.   },
  76.   {
  77.     "inputs": [],
  78.     "name": "_owner",
  79.     "outputs": [
  80.       {
  81.         "internalType": "address",
  82.         "name": "",
  83.         "type": "address"
  84.       }
  85.     ],
  86.     "stateMutability": "view",
  87.     "type": "function"
  88.   },
  89.   {
  90.     "inputs": [],
  91.     "name": "calculateFetchPrice",
  92.     "outputs": [
  93.       {
  94.         "internalType": "uint256",
  95.         "name": "",
  96.         "type": "uint256"
  97.       }
  98.     ],
  99.     "stateMutability": "nonpayable",
  100.     "type": "function"
  101.   },
  102.   {
  103.     "inputs": [
  104.       {
  105.         "internalType": "address",
  106.         "name": "_newOwner",
  107.         "type": "address"
  108.       }
  109.     ],
  110.     "name": "changeOwner",
  111.     "outputs": [],
  112.     "stateMutability": "nonpayable",
  113.     "type": "function"
  114.   },
  115.   {
  116.     "inputs": [
  117.       {
  118.         "internalType": "uint256",
  119.         "name": "_timestamp",
  120.         "type": "uint256"
  121.       },
  122.       {
  123.         "internalType": "uint256",
  124.         "name": "_result",
  125.         "type": "uint256"
  126.       }
  127.     ],
  128.     "name": "emergencyCallback",
  129.     "outputs": [],
  130.     "stateMutability": "nonpayable",
  131.     "type": "function"
  132.   },
  133.   {
  134.     "inputs": [
  135.       {
  136.         "internalType": "uint256",
  137.         "name": "_timestamp",
  138.         "type": "uint256"
  139.       }
  140.     ],
  141.     "name": "fetchData",
  142.     "outputs": [],
  143.     "stateMutability": "payable",
  144.     "type": "function"
  145.   },
  146.   {
  147.     "inputs": [],
  148.     "name": "getResult",
  149.     "outputs": [
  150.       {
  151.         "internalType": "uint256",
  152.         "name": "",
  153.         "type": "uint256"
  154.       }
  155.     ],
  156.     "stateMutability": "view",
  157.     "type": "function"
  158.   },
  159.   {
  160.     "inputs": [],
  161.     "name": "oracleAggregator",
  162.     "outputs": [
  163.       {
  164.         "internalType": "contract IOracleAggregator",
  165.         "name": "",
  166.         "type": "address"
  167.       }
  168.     ],
  169.     "stateMutability": "view",
  170.     "type": "function"
  171.   },
  172.   {
  173.     "inputs": [
  174.       {
  175.         "internalType": "uint256",
  176.         "name": "_timestamp",
  177.         "type": "uint256"
  178.       },
  179.       {
  180.         "internalType": "uint256",
  181.         "name": "_period",
  182.         "type": "uint256"
  183.       },
  184.       {
  185.         "internalType": "uint256",
  186.         "name": "_times",
  187.         "type": "uint256"
  188.       }
  189.     ],
  190.     "name": "recursivelyFetchData",
  191.     "outputs": [],
  192.     "stateMutability": "payable",
  193.     "type": "function"
  194.   }
  195. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement