opportunity-service 0.0.488 → 0.0.493

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.488",
3
+ "version": "0.0.493",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -41,11 +41,31 @@ async function createTask(data) : Promise<void> {
41
41
  const contract = await new ethers.Contract(taskMarket, abi).connect(opportunityService.getSignersInterface());
42
42
  console.log('e')
43
43
  const txResponse = await contract.functions.createJob(taskOwner, ContractType.NORMAL, taskMetadataPointer, taskBounty, addressMap[Contracts.DAI])
44
- const txReceipt = txResponse.wait()
45
- console.log(txResponse)
44
+ const txReceipt = await txResponse.wait()
45
+ console.log(txReceipt)
46
46
  } catch(error) {
47
47
  console.log('Service: Caught error creating new job: ' + error);
48
48
  }
49
49
  }
50
50
 
51
- export { createTask }
51
+ export { createTask }
52
+
53
+ /*
54
+
55
+ blockHash: "0xa923c23eec29567d8c2a84c85efbf852d8843448e6452ace4296142a5bf172c4"
56
+ blockNumber: 546
57
+ byzantium: true
58
+ confirmations: 1
59
+ contractAddress: null
60
+ cumulativeGasUsed: BigNumber {_hex: '0x1905c4', _isBigNumber: true}
61
+ events: [{…}]
62
+ from: "0x74F6ff3Ae3f5EB38354FfB05867a37B7B40E6000"
63
+ gasUsed: BigNumber {_hex: '0x1905c4', _isBigNumber: true}
64
+ logs: [{…}]
65
+ logsBloom: "0x00000000000000000000000000000000000008000000000000000000000000000000008004000000000000000000000000000000000000001080000020000000000000000000000000000000008000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000010000000040000000000000000000000000000000000000000000000000000080000008000800000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000"
66
+ status: 1
67
+ to: "0xF1fE363e6A32F91F52D55dCa56daFb1C88f9Dc2C"
68
+ transactionHash: "0x70f1f60a6a5056374cad6480dc1137be3a953d4ef724dac1190076305291096a"
69
+ transactionIndex: 0
70
+
71
+ */
@@ -1,5 +1,5 @@
1
1
  {
2
- "MarketFactory": "0x41e9d48d1bf6c7dEFEF16C8F576BF39C5831fe40",
3
- "UserRegistration": "0xB16a4e64bB63a2cbeB7dC3C40471b069d819f803",
4
- "Dai": "0x68d45EE246bd52601a272623d934634761F4051F"
2
+ "MarketFactory": "0x5DEc27eafDD62D780CEe0eaEEea2Eb4F166585Fe",
3
+ "UserRegistration": "0xfB65e977f305d492A9D68e435137CE8FAEb4BAfb",
4
+ "Dai": "0xF5491010D98c820c58bcD253A5C418b6d41C0Df6"
5
5
  }