UNPKG

@vaimee/my3sec-contracts

Version:

A set of contracts that implements the My3Sec protocol

607 lines (606 loc) 15.2 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IMy3SecHub__factory = void 0; const ethers_1 = require("ethers"); const _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", }, ]; class IMy3SecHub__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IMy3SecHub__factory = IMy3SecHub__factory; IMy3SecHub__factory.abi = _abi;