opportunity-service 0.0.449 → 0.0.454

Sign up to get free protection for your applications and to get access to all the features.
@@ -125,7 +125,7 @@ class OpportunityService {
125
125
  return this.ethersSigner;
126
126
  }
127
127
  }
128
- OpportunityService.defaultProvider = new web3_1.default('localhost:8548');
128
+ OpportunityService.defaultProvider = new web3_1.default('http://localhost:8545');
129
129
  const opportunityService = OpportunityService.getInstance();
130
130
  exports.default = opportunityService;
131
131
  //# 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,IAAI,kBAAkB,EAAE,CAAC;SAC1D;QAED,OAAO,kBAAkB,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,QAAe;QACjC,kBAAkB,CAAC,eAAe,GAAG,QAAQ,CAAC;IAClD,CAAC;IAED,cAAc,CAAC,QAAoC;QAC/C,IAAI,CAAC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AAC;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;;AA/Gc,kCAAe,GAAG,IAAI,cAAI,CAAC,uBAAuB,CAAC,CAAA;AAkHtE,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;AAC5D,kBAAe,kBAAkB,CAAC"}
@@ -34,6 +34,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.createTask = void 0;
35
35
  const constants_1 = require("../../constants");
36
36
  const abiMap = __importStar(require("../../blockchain/abi.json"));
37
+ const addressMap = __importStar(require("../../blockchain/addresses.json"));
37
38
  const OpportunityService_1 = __importDefault(require("../../OpportunityService"));
38
39
  const ethers_1 = require("ethers");
39
40
  const Tx = require("ethereumjs-tx").Transaction;
@@ -46,15 +47,17 @@ function createTask(data) {
46
47
  console.log(abi);
47
48
  const taskOwner = parsedData["taskOwner"];
48
49
  const taskMarket = parsedData["taskMarket"];
50
+ const taskBounty = parsedData["taskBounty"];
49
51
  console.log(taskOwner);
50
52
  console.log(taskMarket);
53
+ console.log(taskBounty);
51
54
  const taskMetadataPointer = ''; //= await opportunityStorageProvider.storeRawContent(data);
52
55
  try {
53
56
  console.log('AAAAAAAAAAAAAA');
54
57
  console.log(OpportunityService_1.default.getSignersInterface());
55
58
  console.log(data);
56
59
  const contract = yield new ethers_1.ethers.Contract(taskMarket, abi).connect(OpportunityService_1.default.getSignersInterface());
57
- const txResponse = yield contract.functions.createJob(constants_1.ContractType.NORMAL, taskMetadataPointer);
60
+ const txResponse = yield contract.functions.createJob(taskOwner, constants_1.ContractType.NORMAL, taskMetadataPointer, taskBounty, addressMap[constants_1.Contracts.DAI]);
58
61
  console.log(txResponse);
59
62
  }
60
63
  catch (error) {
@@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OAAO,CAAC,GAAG,CAAC,4BAAkB,CAAC,mBAAmB,EAAE,CAAC,CAAA;YACrD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACjB,MAAM,QAAQ,GAAG,MAAM,IAAI,eAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,4BAAkB,CAAC,mBAAmB,EAAE,CAAC,CAAC;YAC9G,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,wBAAY,CAAC,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,CAAC,qBAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YAElJ,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;SACtB;QAAC,OAAM,KAAK,EAAE;YACX,OAAO,CAAC,GAAG,CAAC,0CAA0C,GAAG,KAAK,CAAC,CAAC;SACnE;IACL,CAAC;CAAA;AAEQ,gCAAU"}
@@ -1,7 +1,7 @@
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
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" }],
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": "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" }],
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" }]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "MarketFactory": "0xc5E293FE5acc122774D2Ee065dbCa5f8739539c7",
3
- "UserRegistration": "0xa0fAE653dd9bE7014D3543496e252C55aAA4CaB3",
4
- "Dai": "0x74DE57B3Fb336eeac74aa663C46cfa78336422F1"
2
+ "MarketFactory": "0xDb6fEBbFB2E3B64E9650CF1244E6e4e30DebdAF8",
3
+ "UserRegistration": "0x87786E42D3933E3DBB164bBeD6258c646eeAB411",
4
+ "Dai": "0x0583e20c9D4FC5130D9A2758a56c83C3EE051725"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.449",
3
+ "version": "0.0.454",
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('localhost:8548')
22
+ private static defaultProvider = new Web3('http://localhost:8545')
23
23
  private opportunityLogger = null;
24
24
  private storageProvider = opportunityStorageProvider;
25
25
  private currentAccount = null;
@@ -4,6 +4,7 @@ import opportunityEventEmitter from "../../events/OpportunityEventEmitter";
4
4
  import { ParamObject } from "../../types";
5
5
 
6
6
  import * as abiMap from '../../blockchain/abi.json';
7
+ import * as addressMap from '../../blockchain/addresses.json'
7
8
  import * as bytecodeMap from '../../blockchain/bytecode.json';
8
9
  import opportunityService from "../../OpportunityService";
9
10
  import { ethers } from 'ethers';
@@ -22,9 +23,11 @@ async function createTask(data) : Promise<void> {
22
23
 
23
24
  const taskOwner = parsedData["taskOwner"];
24
25
  const taskMarket = parsedData["taskMarket"]
26
+ const taskBounty = parsedData["taskBounty"];
25
27
 
26
28
  console.log(taskOwner)
27
29
  console.log(taskMarket)
30
+ console.log(taskBounty)
28
31
 
29
32
  const taskMetadataPointer = ''; //= await opportunityStorageProvider.storeRawContent(data);
30
33
 
@@ -33,7 +36,7 @@ async function createTask(data) : Promise<void> {
33
36
  console.log(opportunityService.getSignersInterface())
34
37
  console.log(data)
35
38
  const contract = await new ethers.Contract(taskMarket, abi).connect(opportunityService.getSignersInterface());
36
- const txResponse = await contract.functions.createJob(ContractType.NORMAL, taskMetadataPointer);
39
+ const txResponse = await contract.functions.createJob(taskOwner, ContractType.NORMAL, taskMetadataPointer, taskBounty, addressMap[Contracts.DAI]);
37
40
 
38
41
  console.log(txResponse)
39
42
  } catch(error) {
@@ -1,7 +1,7 @@
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
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"}],
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":"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"}],
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"}]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "MarketFactory": "0xc5E293FE5acc122774D2Ee065dbCa5f8739539c7",
3
- "UserRegistration": "0xa0fAE653dd9bE7014D3543496e252C55aAA4CaB3",
4
- "Dai": "0x74DE57B3Fb336eeac74aa663C46cfa78336422F1"
2
+ "MarketFactory": "0xDb6fEBbFB2E3B64E9650CF1244E6e4e30DebdAF8",
3
+ "UserRegistration": "0x87786E42D3933E3DBB164bBeD6258c646eeAB411",
4
+ "Dai": "0x0583e20c9D4FC5130D9A2758a56c83C3EE051725"
5
5
  }