opportunity-service 0.0.454 → 0.0.458

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,6 @@ const ethers_1 = require("ethers");
22
22
  const start_event_listeners_1 = require("./events/start-event-listeners");
23
23
  const index_1 = __importDefault(require("./api/index"));
24
24
  const OpportunityStorageProvider_1 = __importDefault(require("./modules/storage/OpportunityStorageProvider"));
25
- const web3_1 = __importDefault(require("web3"));
26
25
  class OpportunityService {
27
26
  /**
28
27
  * The Singleton's constructor should always be private to prevent direct
@@ -125,7 +124,6 @@ class OpportunityService {
125
124
  return this.ethersSigner;
126
125
  }
127
126
  }
128
- OpportunityService.defaultProvider = new web3_1.default('http://localhost:8545');
129
127
  const opportunityService = OpportunityService.getInstance();
130
128
  exports.default = opportunityService;
131
129
  //# sourceMappingURL=OpportunityService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpportunityService.js","sourceRoot":"","sources":["../src/OpportunityService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,+FAAuE;AACvE,8EAAwE;AAExE,qEAA2C;AAC3C,iFAAuD;AACvD,2EAAiD;AACjD,mCAA2C;AAE3C,0EAAqE;AACrE,wDAAyC;AACzC,8GAAsF;AAEtF,gDAAwB;AAExB,MAAM,kBAAkB;IAgBpB;;;OAGG;IACH;QAnBQ,iBAAY,GAAG,iCAAuB,CAAC;QACvC,YAAO,GAAY,KAAK,CAAC;QAEzB,mBAAc,GAA+B,eAAM,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;QAChG,iBAAY,GAA6B,IAAI,CAAC;QAE9C,sBAAiB,GAAG,IAAI,CAAC;QACzB,oBAAe,GAAG,oCAA0B,CAAC;QAC7C,mBAAc,GAAG,IAAI,CAAC;QAGvB,QAAG,GAAI,eAAc,CAAC;IAQN,CAAC;IAExB;;;;;OAKG;IACI,MAAM,CAAC,WAAW;QACrB,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE;YAC9B,kBAAkB,CAAC,QAAQ,GAAG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qBAAS,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAED,qBAAqB,CAAC,QAAmB;QACrC,OAAO,wBAAY,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,QAAmB;QACjC,OAAO,kBAAM,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED,2BAA2B;QACvB,OAAO,kBAAkB,CAAC,eAAe,CAAC;IAC9C,CAAC;IAED,oBAAoB;QAChB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,mBAAmB;QACf,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;AAC5D,kBAAe,kBAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "MarketFactory": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_market", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "index", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "string", "name": "marketName", "type": "string" }], "name": "MarketCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_marketAddress", "type": "address" }], "name": "MarketDestroyed", "type": "event" }, { "inputs": [{ "internalType": "string", "name": "marketName", "type": "string" }, { "internalType": "enum MarketLib.MarketType", "name": "marketType", "type": "uint8" }], "name": "createMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "index", "type": "uint32" }], "name": "destroyMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getNumMarkets", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
3
- "WorkRelationship": [{ "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "enum Evaluation.ContractType", "name": "_contractType", "type": "uint8" }, { "internalType": "string", "name": "taskMetadataPointer", "type": "string" }, { "internalType": "uint256", "name": "_wad", "type": "uint256" }, { "internalType": "address", "name": "_daiTokenAddress", "type": "address" }], "stateMutability": "payable", "type": "constructor" }, { "inputs": [], "name": "_contractStatus", "outputs": [{ "internalType": "enum Evaluation.WorkRelationshipState", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_taskMetadataPointer", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address payable", "name": "_newWorker", "type": "address" }, { "internalType": "uint256", "name": "_stakedReputation", "type": "uint256" }], "name": "assignNewWorker", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "workerUniversalAddress", "type": "address" }, { "components": [{ "internalType": "string", "name": "industry", "type": "string" }, { "internalType": "uint256", "name": "industrylevel", "type": "uint256" }, { "internalType": "uint256", "name": "reputation", "type": "uint256" }], "internalType": "struct Evaluation.EvaluationState", "name": "evaluationState", "type": "tuple" }], "name": "checkWorkerEvaluation", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "completeContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "contractPayout", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "contractType", "outputs": [{ "internalType": "enum Evaluation.ContractType", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTaskSolutionPointer", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "disputor", "type": "address" }], "name": "submitDispute", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_submission", "type": "bytes32" }, { "internalType": "uint8", "name": "_v", "type": "uint8" }, { "internalType": "bytes32", "name": "_r", "type": "bytes32" }, { "internalType": "bytes32", "name": "_s", "type": "bytes32" }], "name": "submitWork", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_approved", "type": "bool" }, { "internalType": "uint8", "name": "_v", "type": "uint8" }, { "internalType": "bytes32", "name": "_r", "type": "bytes32" }, { "internalType": "bytes32", "name": "_s", "type": "bytes32" }], "name": "submitWorkEvaluation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unAssignWorker", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "updateContractPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newState", "type": "uint256" }], "name": "updateRelationshipState", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "newTaskPointerHash", "type": "string" }], "name": "updateTaskMetadataPointer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "newTaskPointerHash", "type": "string" }], "name": "updateTaskSolutionPointer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "worker", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }],
3
+ "WorkRelationship": [{ "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "enum Evaluation.ContractType", "name": "_contractType", "type": "uint8" }, { "internalType": "string", "name": "taskMetadataPointer", "type": "string" }, { "internalType": "uint256", "name": "_wad", "type": "uint256" }, { "internalType": "address", "name": "_daiTokenAddress", "type": "address" }], "stateMutability": "payable", "type": "constructor" }, { "inputs": [], "name": "_contractStatus", "outputs": [{ "internalType": "enum Evaluation.WorkRelationshipState", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_taskMetadataPointer", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address payable", "name": "_newWorker", "type": "address" }, { "internalType": "uint256", "name": "_stakedReputation", "type": "uint256" }], "name": "assignNewWorker", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "workerUniversalAddress", "type": "address" }, { "components": [{ "internalType": "string", "name": "industry", "type": "string" }, { "internalType": "uint256", "name": "industrylevel", "type": "uint256" }, { "internalType": "uint256", "name": "reputation", "type": "uint256" }], "internalType": "struct Evaluation.EvaluationState", "name": "evaluationState", "type": "tuple" }], "name": "checkWorkerEvaluation", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "completeContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "contractPayout", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "contractType", "outputs": [{ "internalType": "enum Evaluation.ContractType", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTaskSolutionPointer", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "disputor", "type": "address" }], "name": "submitDispute", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_submission", "type": "bytes32" }], "name": "submitWork", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_approved", "type": "bool" }], "name": "submitWorkEvaluation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unAssignWorker", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "updateContractPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newState", "type": "uint256" }], "name": "updateRelationshipState", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "newTaskPointerHash", "type": "string" }], "name": "updateTaskMetadataPointer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "newTaskPointerHash", "type": "string" }], "name": "updateTaskSolutionPointer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "worker", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }],
4
4
  "Market": [{ "inputs": [{ "internalType": "string", "name": "marketName", "type": "string" }, { "internalType": "enum MarketLib.MarketType", "name": "marketType", "type": "uint8" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "marketAddress", "type": "address" }, { "indexed": true, "internalType": "string", "name": "marketName", "type": "string" }], "name": "MarketPaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "marketAddress", "type": "address" }, { "indexed": true, "internalType": "string", "name": "marketName", "type": "string" }], "name": "MarketResumed", "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": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "relationship", "type": "address" }, { "indexed": true, "internalType": "address", "name": "marketAddress", "type": "address" }], "name": "WorkRelationshipCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "relationship", "type": "address" }], "name": "WorkRelationshipEnded", "type": "event" }, { "inputs": [], "name": "_marketName", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_marketStatus", "outputs": [{ "internalType": "enum MarketLib.MarketStatus", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_marketType", "outputs": [{ "internalType": "enum MarketLib.MarketType", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_requiredIndustryWeight", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_requiredReputation", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "taskOwner", "type": "address" }, { "internalType": "enum Evaluation.ContractType", "name": "_contractType", "type": "uint8" }, { "internalType": "string", "name": "taskMetadataPointer", "type": "string" }, { "internalType": "uint256", "name": "_wad", "type": "uint256" }, { "internalType": "address", "name": "_daiTokenAddress", "type": "address" }], "name": "createJob", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getMarketState", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getNumJobs", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getWorkRelationships", "outputs": [{ "internalType": "contract WorkRelationship[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pauseMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resumeMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }],
5
5
  "UserRegistration": [{ "inputs": [{ "internalType": "address", "name": "userSummaryFactoryAddress", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "universalAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "userSummaryContractAddress", "type": "address" }], "name": "UserAssignedTrueIdentification", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "universalAddress", "type": "address" }], "name": "UserRegistered", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "universalAddress", "type": "address" }], "name": "getTrueIdentification", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "universalAddress", "type": "address" }], "name": "registerNewUser", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }],
6
6
  "Dai": [{ "inputs": [{ "internalType": "uint256", "name": "chainId_", "type": "uint256" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "guy", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dst", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PERMIT_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }], "name": "deny", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "move", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "nonces", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiry", "type": "uint256" }, { "internalType": "bool", "name": "allowed", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "permit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "pull", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "push", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }], "name": "rely", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "version", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "wards", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }]
@@ -1,5 +1,5 @@
1
1
  {
2
- "MarketFactory": "0xDb6fEBbFB2E3B64E9650CF1244E6e4e30DebdAF8",
3
- "UserRegistration": "0x87786E42D3933E3DBB164bBeD6258c646eeAB411",
4
- "Dai": "0x0583e20c9D4FC5130D9A2758a56c83C3EE051725"
2
+ "MarketFactory": "0xC4FA9c0f02E34110D768F61e079600F4914b978a",
3
+ "UserRegistration": "0x2fde364d32E0AE2e532bA961E4dFf1bc3D7fb864",
4
+ "Dai": "0x4b9A80FEF5cc596fA92b14D01025B92957C552B9"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.454",
3
+ "version": "0.0.458",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -19,7 +19,7 @@ class OpportunityService {
19
19
  private syncing: boolean;
20
20
  private ethersProvider : providers.JsonRpcProvider = ethers.getDefaultProvider('http://localhost:8545');
21
21
  private ethersSigner : providers.JsonRpcSigner = null;
22
- private static defaultProvider = new Web3('http://localhost:8545')
22
+ private static defaultProvider;// = new Web3('http://localhost:8545')
23
23
  private opportunityLogger = null;
24
24
  private storageProvider = opportunityStorageProvider;
25
25
  private currentAccount = null;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "MarketFactory": [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_market","type":"address"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"string","name":"marketName","type":"string"}],"name":"MarketCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_marketAddress","type":"address"}],"name":"MarketDestroyed","type":"event"},{"inputs":[{"internalType":"string","name":"marketName","type":"string"},{"internalType":"enum MarketLib.MarketType","name":"marketType","type":"uint8"}],"name":"createMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"index","type":"uint32"}],"name":"destroyMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNumMarkets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],
3
- "WorkRelationship": [{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"enum Evaluation.ContractType","name":"_contractType","type":"uint8"},{"internalType":"string","name":"taskMetadataPointer","type":"string"},{"internalType":"uint256","name":"_wad","type":"uint256"},{"internalType":"address","name":"_daiTokenAddress","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"_contractStatus","outputs":[{"internalType":"enum Evaluation.WorkRelationshipState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taskMetadataPointer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newWorker","type":"address"},{"internalType":"uint256","name":"_stakedReputation","type":"uint256"}],"name":"assignNewWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"workerUniversalAddress","type":"address"},{"components":[{"internalType":"string","name":"industry","type":"string"},{"internalType":"uint256","name":"industrylevel","type":"uint256"},{"internalType":"uint256","name":"reputation","type":"uint256"}],"internalType":"struct Evaluation.EvaluationState","name":"evaluationState","type":"tuple"}],"name":"checkWorkerEvaluation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractType","outputs":[{"internalType":"enum Evaluation.ContractType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaskSolutionPointer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"disputor","type":"address"}],"name":"submitDispute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_submission","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"submitWork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_approved","type":"bool"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"submitWorkEvaluation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unAssignWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateContractPayout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newState","type":"uint256"}],"name":"updateRelationshipState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTaskPointerHash","type":"string"}],"name":"updateTaskMetadataPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTaskPointerHash","type":"string"}],"name":"updateTaskSolutionPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"worker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],
3
+ "WorkRelationship": [{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"enum Evaluation.ContractType","name":"_contractType","type":"uint8"},{"internalType":"string","name":"taskMetadataPointer","type":"string"},{"internalType":"uint256","name":"_wad","type":"uint256"},{"internalType":"address","name":"_daiTokenAddress","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"_contractStatus","outputs":[{"internalType":"enum Evaluation.WorkRelationshipState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taskMetadataPointer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newWorker","type":"address"},{"internalType":"uint256","name":"_stakedReputation","type":"uint256"}],"name":"assignNewWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"workerUniversalAddress","type":"address"},{"components":[{"internalType":"string","name":"industry","type":"string"},{"internalType":"uint256","name":"industrylevel","type":"uint256"},{"internalType":"uint256","name":"reputation","type":"uint256"}],"internalType":"struct Evaluation.EvaluationState","name":"evaluationState","type":"tuple"}],"name":"checkWorkerEvaluation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractType","outputs":[{"internalType":"enum Evaluation.ContractType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaskSolutionPointer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"disputor","type":"address"}],"name":"submitDispute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_submission","type":"bytes32"}],"name":"submitWork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_approved","type":"bool"}],"name":"submitWorkEvaluation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unAssignWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateContractPayout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newState","type":"uint256"}],"name":"updateRelationshipState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTaskPointerHash","type":"string"}],"name":"updateTaskMetadataPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTaskPointerHash","type":"string"}],"name":"updateTaskSolutionPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"worker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],
4
4
  "Market": [{"inputs":[{"internalType":"string","name":"marketName","type":"string"},{"internalType":"enum MarketLib.MarketType","name":"marketType","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"marketAddress","type":"address"},{"indexed":true,"internalType":"string","name":"marketName","type":"string"}],"name":"MarketPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"marketAddress","type":"address"},{"indexed":true,"internalType":"string","name":"marketName","type":"string"}],"name":"MarketResumed","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"relationship","type":"address"},{"indexed":true,"internalType":"address","name":"marketAddress","type":"address"}],"name":"WorkRelationshipCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"relationship","type":"address"}],"name":"WorkRelationshipEnded","type":"event"},{"inputs":[],"name":"_marketName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketStatus","outputs":[{"internalType":"enum MarketLib.MarketStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketType","outputs":[{"internalType":"enum MarketLib.MarketType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_requiredIndustryWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_requiredReputation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"taskOwner","type":"address"},{"internalType":"enum Evaluation.ContractType","name":"_contractType","type":"uint8"},{"internalType":"string","name":"taskMetadataPointer","type":"string"},{"internalType":"uint256","name":"_wad","type":"uint256"},{"internalType":"address","name":"_daiTokenAddress","type":"address"}],"name":"createJob","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMarketState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumJobs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWorkRelationships","outputs":[{"internalType":"contract WorkRelationship[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],
5
5
  "UserRegistration": [{"inputs":[{"internalType":"address","name":"userSummaryFactoryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"universalAddress","type":"address"},{"indexed":true,"internalType":"address","name":"userSummaryContractAddress","type":"address"}],"name":"UserAssignedTrueIdentification","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"universalAddress","type":"address"}],"name":"UserRegistered","type":"event"},{"inputs":[{"internalType":"address","name":"universalAddress","type":"address"}],"name":"getTrueIdentification","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"universalAddress","type":"address"}],"name":"registerNewUser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}],
6
6
  "Dai": [{"inputs":[{"internalType":"uint256","name":"chainId_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"move","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"pull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"push","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
@@ -1,5 +1,5 @@
1
1
  {
2
- "MarketFactory": "0xDb6fEBbFB2E3B64E9650CF1244E6e4e30DebdAF8",
3
- "UserRegistration": "0x87786E42D3933E3DBB164bBeD6258c646eeAB411",
4
- "Dai": "0x0583e20c9D4FC5130D9A2758a56c83C3EE051725"
2
+ "MarketFactory": "0xC4FA9c0f02E34110D768F61e079600F4914b978a",
3
+ "UserRegistration": "0x2fde364d32E0AE2e532bA961E4dFf1bc3D7fb864",
4
+ "Dai": "0x4b9A80FEF5cc596fA92b14D01025B92957C552B9"
5
5
  }