@vaimee/my3sec-contracts
Version:
A set of contracts that implements the My3Sec protocol
599 lines (598 loc) • 13.1 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IMy3SecHub",
"sourceName": "contracts/common/interfaces/IMy3SecHub.sol",
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
}
],
"name": "createOrganization",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
}
],
"internalType": "struct DataTypes.CreateProfile",
"name": "args",
"type": "tuple"
}
],
"name": "createProfile",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitPendingMemberApproved",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitPendingMemberRejected",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "projectId",
"type": "uint256"
}
],
"name": "emitProjectCreated",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "projectId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitProjectMemberAdded",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "projectId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitProjectMemberRemoved",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "projectId",
"type": "uint256"
}
],
"name": "emitProjectUpdated",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "projectId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
}
],
"name": "emitTaskCreated",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitTaskMemberAdded",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "emitTaskMemberRemoved",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
}
],
"name": "emitTaskUpdated",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getDefaultProfile",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
}
],
"internalType": "struct DataTypes.ProfileView",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getOrganization",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOrganizationCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "getProfile",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
}
],
"internalType": "struct DataTypes.ProfileView",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "getProfileAccount",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "giveEnergyTo",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "hasWithdrawn",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
},
{
"internalType": "string",
"name": "uri",
"type": "string"
}
],
"name": "issueCertificate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
},
{
"internalType": "string",
"name": "uri",
"type": "string"
}
],
"name": "issueCertificate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
}
],
"name": "joinOrganization",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
}
],
"name": "leaveOrganization",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "logTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organization",
"type": "address"
}
],
"name": "registerOrganization",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "removeEnergyFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
}
],
"name": "setDefaultProfile",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "profileId",
"type": "uint256"
},
{
"components": [
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
}
],
"internalType": "struct DataTypes.UpdateProfile",
"name": "args",
"type": "tuple"
}
],
"name": "updateProfile",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "organizationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "taskId",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}