Skip to content

Commit

Permalink
use abis within healthz (#7276)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsavvy authored Jan 23, 2024
1 parent c75590f commit 00ca201
Show file tree
Hide file tree
Showing 4 changed files with 1,782 additions and 8 deletions.
12 changes: 4 additions & 8 deletions monitoring/healthz/src/utils/abis.ts
Original file line number Diff line number Diff line change
@@ -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 }
288 changes: 288 additions & 0 deletions monitoring/healthz/src/utils/abis/Registry.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
Loading

0 comments on commit 00ca201

Please sign in to comment.