@vaimee/my3sec-contracts
Version:
A set of contracts that implements the My3Sec protocol
878 lines (877 loc) • 21.8 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IOrganization__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "addProjectMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "addTaskMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "addToWhitelist",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "approvePendingMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "string",
name: "metadataURI",
type: "string",
},
],
internalType: "struct DataTypes.CreateProject",
name: "args",
type: "tuple",
},
],
name: "createProject",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
components: [
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "uint256[]",
name: "skills",
type: "uint256[]",
},
],
internalType: "struct DataTypes.CreateTask",
name: "args",
type: "tuple",
},
],
name: "createTask",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getMember",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getMemberCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getMetadataURI",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getPendingMember",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPendingMemberCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getProject",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256",
},
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "enum DataTypes.ProjectStatus",
name: "status",
type: "uint8",
},
{
internalType: "uint256",
name: "taskCount",
type: "uint256",
},
],
internalType: "struct DataTypes.ProjectView",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getProjectCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getProjectMember",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
],
name: "getProjectMemberCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
],
name: "getTask",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256",
},
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "enum DataTypes.TaskStatus",
name: "status",
type: "uint8",
},
{
internalType: "uint256[]",
name: "skills",
type: "uint256[]",
},
],
internalType: "struct DataTypes.TaskView",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getTask",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256",
},
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "enum DataTypes.TaskStatus",
name: "status",
type: "uint8",
},
{
internalType: "uint256[]",
name: "skills",
type: "uint256[]",
},
],
internalType: "struct DataTypes.TaskView",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
],
name: "getTaskCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getTaskLoggedTime",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
],
name: "getTaskLoggedTimeCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "getTaskLoggedTimeOfProfile",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getTaskMember",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
],
name: "getTaskMemberCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getWhitelistCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "getWhitelistMember",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "isMember",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "isPendingMember",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "isProjectMember",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "isTaskMember",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "isWhitelisted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "join",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "leave",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "rejectPendingMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "removeFromWhitelist",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "removeProjectMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "profileId",
type: "uint256",
},
],
name: "removeTaskMember",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "metadataURI",
type: "string",
},
],
name: "setMetadataURI",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
components: [
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "enum DataTypes.ProjectStatus",
name: "status",
type: "uint8",
},
],
internalType: "struct DataTypes.UpdateProject",
name: "args",
type: "tuple",
},
],
name: "updateProject",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
components: [
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "enum DataTypes.TaskStatus",
name: "status",
type: "uint8",
},
{
internalType: "uint256[]",
name: "skills",
type: "uint256[]",
},
],
internalType: "struct DataTypes.UpdateTask",
name: "args",
type: "tuple",
},
],
name: "updateTask",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "taskId",
type: "uint256",
},
{
internalType: "uint256",
name: "time",
type: "uint256",
},
],
name: "updateTaskTime",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class IOrganization__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IOrganization__factory = IOrganization__factory;
IOrganization__factory.abi = _abi;