From 7fb003e2b4ad813174696d46da9e8c8d297f3270 Mon Sep 17 00:00:00 2001 From: Mario Micklisch Date: Thu, 14 Dec 2023 12:21:39 +0100 Subject: [PATCH] Add ABI for oracle.vechain.energy --- ABIs/oracle.vechain.energy.json | 116 ++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 ABIs/oracle.vechain.energy.json diff --git a/ABIs/oracle.vechain.energy.json b/ABIs/oracle.vechain.energy.json new file mode 100644 index 00000000..0faeb6a8 --- /dev/null +++ b/ABIs/oracle.vechain.energy.json @@ -0,0 +1,116 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "value", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "updatedAt", + "type": "uint128" + } + ], + "name": "ValueUpdate", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "getLatestValue", + "outputs": [ + { + "internalType": "uint128", + "name": "value", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "updatedAt", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "isReporter", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + }, + { + "internalType": "uint128", + "name": "value", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "timestamp", + "type": "uint128" + } + ], + "name": "updateValue", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "extraData", + "type": "bytes" + }, + { + "internalType": "address", + "name": "signedFor", + "type": "address" + } + ], + "name": "updateValueWithProof", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +]