diff --git a/MedFiRegistryAbi.json b/MedFiRegistryAbi.json index 02668f8..4b38df4 100644 --- a/MedFiRegistryAbi.json +++ b/MedFiRegistryAbi.json @@ -1,939 +1,764 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "HospitalAlreadyRegistered", - "type": "error" - }, - { - "inputs": [], - "name": "HospitalNotRegistered", - "type": "error" - }, - { - "inputs": [], - "name": "HospitalNotVerified", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidHospitalAddress", - "type": "error" - }, - { - "inputs": [], - "name": "OnlyAdminAllowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [], - "name": "ProfessionalAlreadyRegistered", - "type": "error" - }, - { - "inputs": [], - "name": "ProfessionalIsBlacklisted", - "type": "error" - }, - { - "inputs": [], - "name": "ProfessionalNotAffiliated", - "type": "error" - }, - { - "inputs": [], - "name": "ProfessionalNotRegistered", - "type": "error" - }, - { - "inputs": [], - "name": "UnauthorizedAffiliation", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "AffiliationApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "oldHospital", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newHospital", - "type": "address" - } - ], - "name": "AffiliationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "AffiliationRevoked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - } - ], - "name": "HospitalRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - } - ], - "name": "HospitalUnverified", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - } - ], - "name": "HospitalVerified", - "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" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "ProfessionalBlacklisted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "ProfessionalProfileUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - } - ], - "name": "ProfessionalRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "hospital", - "type": "address" - } - ], - "name": "ProfessionalUnaffiliated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "ProfessionalUnblacklisted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "ProfessionalUnverified", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "professional", - "type": "address" - } - ], - "name": "ProfessionalVerified", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_admin", - "type": "address" - } - ], - "name": "addAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professionalAddress", - "type": "address" - } - ], - "name": "approveAffiliation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_professionalAddresses", - "type": "address[]" - } - ], - "name": "approveMultipleAffiliations", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "blacklistProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "canPerformActivities", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_newHospitalAddress", - "type": "address" - } - ], - "name": "changeAffiliation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllHospitals", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllProfessionals", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospital", - "type": "address" - } - ], - "name": "getHospital", - "outputs": [ - { - "internalType": "bool", - "name": "verified", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "registrationTimestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "getProfessional", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "professionalAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "affiliatedHospital", - "type": "address" - }, - { - "internalType": "bool", - "name": "isVerified", - "type": "bool" - }, - { - "internalType": "bool", - "name": "isAffiliated", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "registrationTimestamp", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - } - ], - "internalType": "struct MedFiRegistry.Professional", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTotalHospitals", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTotalProfessionals", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "hospitalAddresses", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "hospitals", - "outputs": [ - { - "internalType": "bool", - "name": "isVerified", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "registrationTimestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isAdmin", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospital", - "type": "address" - }, - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "isAffiliationApproved", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isBlacklisted", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospital", - "type": "address" - }, - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "isProfessionalAffiliated", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "isVerified", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "pendingAffiliations", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "professionalAddresses", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "professionals", - "outputs": [ - { - "internalType": "address", - "name": "professionalAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "affiliatedHospital", - "type": "address" - }, - { - "internalType": "bool", - "name": "isVerified", - "type": "bool" - }, - { - "internalType": "bool", - "name": "isAffiliated", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "registrationTimestamp", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "registerHospital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospitalAddress", - "type": "address" - } - ], - "name": "registerProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_admin", - "type": "address" - } - ], - "name": "removeAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professionalAddress", - "type": "address" - } - ], - "name": "revokeAffiliationApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_professionalAddresses", - "type": "address[]" - } - ], - "name": "revokeMultipleAffiliationApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_professionalAddresses", - "type": "address[]" - } - ], - "name": "unaffiliateMultipleProfessionals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professionalAddress", - "type": "address" - } - ], - "name": "unaffiliateProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "unblacklistProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospital", - "type": "address" - } - ], - "name": "unverifyHospital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "unverifyProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "updateProfessionalProfile", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_hospital", - "type": "address" - } - ], - "name": "verifyHospital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_professional", - "type": "address" - } - ], - "name": "verifyProfessional", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } + [ + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "addAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "blacklistHospital", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "blacklistProfessional", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "HospitalAlreadyRegistered", + "type": "error" + }, + { + "inputs": [], + "name": "HospitalIsBlacklisted", + "type": "error" + }, + { + "inputs": [], + "name": "HospitalNotRegistered", + "type": "error" + }, + { + "inputs": [], + "name": "HospitalNotVerified", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAddress", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyAdminAllowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "inputs": [], + "name": "ProfessionalAlreadyRegistered", + "type": "error" + }, + { + "inputs": [], + "name": "ProfessionalIsBlacklisted", + "type": "error" + }, + { + "inputs": [], + "name": "ProfessionalNotRegistered", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "hospital", + "type": "address" + } + ], + "name": "HospitalBlacklisted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "hospital", + "type": "address" + } + ], + "name": "HospitalRegistered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "hospital", + "type": "address" + } + ], + "name": "HospitalUnblacklisted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "hospital", + "type": "address" + } + ], + "name": "HospitalUnverified", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "hospital", + "type": "address" + } + ], + "name": "HospitalVerified", + "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" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalBlacklisted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalProfileUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalRegistered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalUnblacklisted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalUnverified", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "professional", + "type": "address" + } + ], + "name": "ProfessionalVerified", + "type": "event" + }, + { + "inputs": [], + "name": "registerHospital", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "registerProfessional", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "removeAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "unblacklistHospital", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "unblacklistProfessional", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "unverifyHospital", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_professionals", + "type": "address[]" + } + ], + "name": "unverifyMultipleProfessionals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "unverifyProfessional", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "updateProfessionalProfile", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "verifyHospital", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_professionals", + "type": "address[]" + } + ], + "name": "verifyMultipleProfessionals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "verifyProfessional", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_address", + "type": "address" + } + ], + "name": "canPerformActivities", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAllHospitals", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAllProfessionals", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "getHospital", + "outputs": [ + { + "internalType": "bool", + "name": "verified", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "registrationTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "getProfessional", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "professionalAddress", + "type": "address" + }, + { + "internalType": "bool", + "name": "isVerified", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "registrationTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "internalType": "struct MedFiRegistry.Professional", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTotalHospitals", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTotalProfessionals", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "hospitalAddresses", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "hospitals", + "outputs": [ + { + "internalType": "bool", + "name": "isVerified", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "registrationTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "isAdmin", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "isBlacklisted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_hospital", + "type": "address" + } + ], + "name": "isVerifiedHospital", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_professional", + "type": "address" + } + ], + "name": "isVerifiedProfessional", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "professionalAddresses", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "professionals", + "outputs": [ + { + "internalType": "address", + "name": "professionalAddress", + "type": "address" + }, + { + "internalType": "bool", + "name": "isVerified", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "registrationTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } ] diff --git a/README.md b/README.md index 2a60e23..c25b9eb 100644 --- a/README.md +++ b/README.md @@ -573,4 +573,3 @@ For questions, issues, or contributions, please refer to the project repository - MedFi Registry: 0x4d45F8158e252FD8e026cD594a4ec70dCD712562 - MedFi Escrow: 0x6101308FD605f85b4ad1F5569c06eC9393c5a52A - MedFi Records: 0xEd27133B24A9cDf08E2a9F05D4ba2B5f323E2dE1 -