From f1ce7e156b0e98a30c9f5e66aced960b467caeda Mon Sep 17 00:00:00 2001 From: Alec Savvy Date: Mon, 22 Jan 2024 15:46:48 -0700 Subject: [PATCH] use abis within healthz --- monitoring/healthz/src/utils/abis.ts | 12 +- .../healthz/src/utils/abis/Registry.json | 288 ++++ .../utils/abis/ServiceProviderFactory.json | 1153 +++++++++++++++++ .../src/utils/abis/ServiceTypeManager.json | 337 +++++ 4 files changed, 1782 insertions(+), 8 deletions(-) create mode 100644 monitoring/healthz/src/utils/abis/Registry.json create mode 100644 monitoring/healthz/src/utils/abis/ServiceProviderFactory.json create mode 100644 monitoring/healthz/src/utils/abis/ServiceTypeManager.json diff --git a/monitoring/healthz/src/utils/abis.ts b/monitoring/healthz/src/utils/abis.ts index 782ddfb7f8a..e84d3e2118a 100644 --- a/monitoring/healthz/src/utils/abis.ts +++ b/monitoring/healthz/src/utils/abis.ts @@ -1,9 +1,5 @@ -import { abi as RegistryAbi } from "../../../../packages/libs/src/eth-contracts/ABIs/Registry.json" -import { abi as ServiceProviderFactoryAbi } from "../../../../packages/libs/src/eth-contracts/ABIs/ServiceProviderFactory.json" -import { abi as ServiceTypeManagerAbi } from "../../../../packages/libs/src/eth-contracts/ABIs/ServiceTypeManager.json" +import { abi as RegistryAbi } from './abis/Registry.json' +import { abi as ServiceProviderFactoryAbi } from './abis/ServiceProviderFactory.json' +import { abi as ServiceTypeManagerAbi } from './abis/ServiceTypeManager.json' -export { - RegistryAbi, - ServiceProviderFactoryAbi, - ServiceTypeManagerAbi -} +export { RegistryAbi, ServiceProviderFactoryAbi, ServiceTypeManagerAbi } diff --git a/monitoring/healthz/src/utils/abis/Registry.json b/monitoring/healthz/src/utils/abis/Registry.json new file mode 100644 index 00000000000..f7e439ca5ee --- /dev/null +++ b/monitoring/healthz/src/utils/abis/Registry.json @@ -0,0 +1,288 @@ +{ + "contractName": "Registry", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "ContractAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "ContractRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_oldAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_newAddress", + "type": "address" + } + ], + "name": "ContractUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "constant": true, + "inputs": [], + "name": "isOwner", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "addContract", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + } + ], + "name": "removeContract", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_newAddress", + "type": "address" + } + ], + "name": "upgradeContract", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_version", + "type": "uint256" + } + ], + "name": "getContract", + "outputs": [ + { + "internalType": "address", + "name": "contractAddr", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + } + ], + "name": "getContract", + "outputs": [ + { + "internalType": "address", + "name": "contractAddr", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_name", + "type": "bytes32" + } + ], + "name": "getContractVersionCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + } + ] +} diff --git a/monitoring/healthz/src/utils/abis/ServiceProviderFactory.json b/monitoring/healthz/src/utils/abis/ServiceProviderFactory.json new file mode 100644 index 00000000000..4bf25a2d8de --- /dev/null +++ b/monitoring/healthz/src/utils/abis/ServiceProviderFactory.json @@ -0,0 +1,1153 @@ +{ + "contractName": "ServiceProviderFactory", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_newClaimsManagerAddress", + "type": "address" + } + ], + "name": "ClaimsManagerAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_lockupDuration", + "type": "uint256" + } + ], + "name": "DecreaseStakeLockupDurationUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_decreaseAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_lockupExpiryBlock", + "type": "uint256" + } + ], + "name": "DecreaseStakeRequestCancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_decreaseAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_newStakeAmount", + "type": "uint256" + } + ], + "name": "DecreaseStakeRequestEvaluated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_decreaseAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_lockupExpiryBlock", + "type": "uint256" + } + ], + "name": "DecreaseStakeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_newDelegateManagerAddress", + "type": "address" + } + ], + "name": "DelegateManagerAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_spID", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "_updatedWallet", + "type": "address" + } + ], + "name": "DelegateOwnerWalletUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_requestedCut", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_finalCut", + "type": "uint256" + } + ], + "name": "DeployerCutUpdateRequestCancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_updatedCut", + "type": "uint256" + } + ], + "name": "DeployerCutUpdateRequestEvaluated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_updatedCut", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_lockupExpiryBlock", + "type": "uint256" + } + ], + "name": "DeployerCutUpdateRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_spID", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "_endpoint", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_unstakeAmount", + "type": "uint256" + } + ], + "name": "DeregisteredServiceProvider", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "_oldEndpoint", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "_newEndpoint", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_spID", + "type": "uint256" + } + ], + "name": "EndpointUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_newGovernanceAddress", + "type": "address" + } + ], + "name": "GovernanceAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_increaseAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_newStakeAmount", + "type": "uint256" + } + ], + "name": "IncreasedStake", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_spID", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "_endpoint", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_stakeAmount", + "type": "uint256" + } + ], + "name": "RegisteredServiceProvider", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_newServiceTypeManagerAddress", + "type": "address" + } + ], + "name": "ServiceTypeManagerAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_newStakingAddress", + "type": "address" + } + ], + "name": "StakingAddressUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_lockupDuration", + "type": "uint256" + } + ], + "name": "UpdateDeployerCutLockupDurationUpdated", + "type": "event" + }, + { + "constant": false, + "inputs": [], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_governanceAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_claimsManagerAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_decreaseStakeLockupDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_deployerCutLockupDuration", + "type": "uint256" + } + ], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "_endpoint", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_stakeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_delegateOwnerWallet", + "type": "address" + } + ], + "name": "register", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "_endpoint", + "type": "string" + } + ], + "name": "deregister", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "uint256", + "name": "_increaseStakeAmount", + "type": "uint256" + } + ], + "name": "increaseStake", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "uint256", + "name": "_decreaseStakeAmount", + "type": "uint256" + } + ], + "name": "requestDecreaseStake", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_account", + "type": "address" + } + ], + "name": "cancelDecreaseStakeRequest", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "decreaseStake", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "_endpoint", + "type": "string" + }, + { + "internalType": "address", + "name": "_updatedDelegateOwnerWallet", + "type": "address" + } + ], + "name": "updateDelegateOwnerWallet", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "_oldEndpoint", + "type": "string" + }, + { + "internalType": "string", + "name": "_newEndpoint", + "type": "string" + } + ], + "name": "updateEndpoint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_cut", + "type": "uint256" + } + ], + "name": "requestUpdateDeployerCut", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "cancelUpdateDeployerCut", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "updateDeployerCut", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "updateServiceProviderStake", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "uint256", + "name": "_duration", + "type": "uint256" + } + ], + "name": "updateDecreaseStakeLockupDuration", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "uint256", + "name": "_duration", + "type": "uint256" + } + ], + "name": "updateDeployerCutLockupDuration", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getServiceProviderDeployerCutBase", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getDeployerCutLockupDuration", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "getTotalServiceTypeProviders", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "string", + "name": "_endpoint", + "type": "string" + } + ], + "name": "getServiceProviderIdFromEndpoint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "_ownerAddress", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "getServiceProviderIdsFromAddress", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_serviceId", + "type": "uint256" + } + ], + "name": "getServiceEndpointInfo", + "outputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "string", + "name": "endpoint", + "type": "string" + }, + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + }, + { + "internalType": "address", + "name": "delegateOwnerWallet", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "getServiceProviderDetails", + "outputs": [ + { + "internalType": "uint256", + "name": "deployerStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deployerCut", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "validBounds", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "numberOfEndpoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minAccountStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxAccountStake", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "getPendingDecreaseStakeRequest", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lockupExpiryBlock", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "getPendingUpdateDeployerCutRequest", + "outputs": [ + { + "internalType": "uint256", + "name": "newDeployerCut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lockupExpiryBlock", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getDecreaseStakeLockupDuration", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "_serviceProvider", + "type": "address" + } + ], + "name": "validateAccountStakeBalance", + "outputs": [], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getGovernanceAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getStakingAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getDelegateManagerAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getServiceTypeManagerAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getClaimsManagerAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_governanceAddress", + "type": "address" + } + ], + "name": "setGovernanceAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "setStakingAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "setDelegateManagerAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "setServiceTypeManagerAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "setClaimsManagerAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + } + ] +} diff --git a/monitoring/healthz/src/utils/abis/ServiceTypeManager.json b/monitoring/healthz/src/utils/abis/ServiceTypeManager.json new file mode 100644 index 00000000000..72d197fe88d --- /dev/null +++ b/monitoring/healthz/src/utils/abis/ServiceTypeManager.json @@ -0,0 +1,337 @@ +{ + "contractName": "ServiceTypeManager", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_serviceTypeMin", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_serviceTypeMax", + "type": "uint256" + } + ], + "name": "ServiceTypeAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "ServiceTypeRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_serviceVersion", + "type": "bytes32" + } + ], + "name": "SetServiceVersion", + "type": "event" + }, + { + "constant": false, + "inputs": [], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_governanceAddress", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getGovernanceAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "address", + "name": "_governanceAddress", + "type": "address" + } + ], + "name": "setGovernanceAddress", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_serviceTypeMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_serviceTypeMax", + "type": "uint256" + } + ], + "name": "addServiceType", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "removeServiceType", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "getServiceTypeInfo", + "outputs": [ + { + "internalType": "bool", + "name": "isValid", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "minStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxStake", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getValidServiceTypes", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "", + "type": "bytes32[]" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "serviceTypeIsValid", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "_serviceVersion", + "type": "bytes32" + } + ], + "name": "setServiceVersion", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_versionIndex", + "type": "uint256" + } + ], + "name": "getVersion", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "getCurrentVersion", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + } + ], + "name": "getNumberOfVersions", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "bytes32", + "name": "_serviceType", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "_serviceVersion", + "type": "bytes32" + } + ], + "name": "serviceVersionIsValid", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + } + ] +}