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/dist/api/exchange/create-task.js +21 -2
- package/dist/api/exchange/create-task.js.map +1 -1
- package/dist/blockchain/addresses.json +3 -3
- package/opportunity-core/src/contracts/market/MarketFactory-solc-output.json +69049 -0
- package/opportunity-core/src/contracts/market/MarketFactory.abi +1 -0
- package/opportunity-core/src/contracts/market/MarketFactory.bin +1 -0
- package/opportunity-core/src/contracts/market/MarketFactory.json +1318 -0
- package/package.json +1 -1
- package/src/api/exchange/create-task.ts +23 -3
- package/src/blockchain/addresses.json +3 -3
package/package.json
CHANGED
@@ -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(
|
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": "
|
3
|
-
"UserRegistration": "
|
4
|
-
"Dai": "
|
2
|
+
"MarketFactory": "0x5DEc27eafDD62D780CEe0eaEEea2Eb4F166585Fe",
|
3
|
+
"UserRegistration": "0xfB65e977f305d492A9D68e435137CE8FAEb4BAfb",
|
4
|
+
"Dai": "0xF5491010D98c820c58bcD253A5C418b6d41C0Df6"
|
5
5
|
}
|