!KIqlZLNUoxMymtDizW:matrix.org

Chainlink/Lobby

10 Members
Gitter integration. https://gitter.im/smartcontractkit-chainlink/Lobby1 Servers

Load older messages


Timestamp Message
12 Mar 2019
14:12:10@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)yes, that was earlier
14:12:19@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)I will try again.
13 Mar 2019
04:19:44@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)I tried making a request again this morning, and my chainlink node, does not picking up the job.
04:19:53@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) mycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", "USD", 100)
04:20:04@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) `mycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", "USD", 100) ` => ```javascriptmycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", "USD", 100) ```
04:20:14@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ```javascriptmycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", ... => ```javascript mycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", ...
04:20:36@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)
{ tx:
   '0x0a815b6ed8ed00bd3c4b1411b2f4d8c0132eab897f8a78272d53c28eb8d734f1',
  receipt:
   { blockHash:
      '0xb93d5229e1765f80d471f886f1598ace45b09c942c558091e3caa46a5f772fa6',
     blockNumber: 5193198,
     contractAddress: null,
     cumulativeGasUsed: 191090,
     from: '0xeb683a576c05f7ed16e5826033cdb795a09e0382',
     gasUsed: 125507,
     logs: [ [Object] ],
     logsBloom:
      '0x0000000000000000000000000000000000100000000180000010000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000006000000020500000081002000000000000000000000000000000000000008000000000000000008000000a010000800000000000001000000000000000000000000000428000000000000000000000000000020000000000000000004000000000000000000000000000400000000000000100002000000000000000000800000000000000000000000000100400000000200000000000000000000000000000000000000000000000000000000000000',
     status: true,
     to: '0xc33e6d360e4b144eaa3071af24a541e1c7d58c29',
     transactionHash:
      '0x0a815b6ed8ed00bd3c4b1411b2f4d8c0132eab897f8a78272d53c28eb8d734f1',
     transactionIndex: 2,
     rawLogs: [ [Object], [Object], [Object], [Object] ] },
  logs:
   [ { address: '0xC33E6D360e4B144EaA3071Af24A541e1C7d58c29',
       blockHash:
        '0xb93d5229e1765f80d471f886f1598ace45b09c942c558091e3caa46a5f772fa6',
       blockNumber: 5193198,
       logIndex: 1,
       removed: false,
       transactionHash:
        '0x0a815b6ed8ed00bd3c4b1411b2f4d8c0132eab897f8a78272d53c28eb8d734f1',
       transactionIndex: 2,
       id: 'log_88985d4f',
       event: 'ChainlinkRequested',
       args: [Result] } ] }
11:56:00@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)Im on 0.5.0, do I need to upgrade?
11:56:20@gitter_thodges-gh:matrix.orgThomas (Gitter)Yes, that would be why.
14:34:46@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)It did update. I am now on 0.6.0. However, my chainlink node address has been change. How do I put it back?
14:35:05@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)Is it included in the chainlink code? I deleted it awhile ago.
15:10:48@gitter_thodges-gh:matrix.orgThomas (Gitter) The keystore should be in the directory where you previously set as $ROOT/keys/. You can import it into the node with chainlink import /path/to/keys/UTC....
14 Mar 2019
08:14:16@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) I tried making a request again
truffle(ropsten)> mycontract.createRequest(jobId, "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD", "USD", 100)
{ tx:
   '0x4ac531549e821f48ea84e5fd33004d794bd6a53fe3fa7c63c35fac0e5ef382bb',
  receipt:
   { blockHash:
      '0x9f76110b935b706f88803c6764b95322660c36d33e39586639f7a5167ebb5ac2',
     blockNumber: 5200719,
     contractAddress: null,
     cumulativeGasUsed: 781851,
     from: '0xeb683a576c05f7ed16e5826033cdb795a09e0382',
     gasUsed: 124483,
     logs: [ [Object] ],
     logsBloom:
      '0x0000000000000000000000000000000000100000000180000010000002000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000880000006000000000400000000002000000000000000000000000000000000000008000000000000000008000000a010000800000000000000000004000000000000000000000420000000000000000000000000000020000000000000000004000000000000200000000000000400000000000000100002000080000000000000800000000000000000800000000100400000000200000000000000000000000000000000000000000000000000000000000000',
     status: true,
     to: '0xc33e6d360e4b144eaa3071af24a541e1c7d58c29',
     transactionHash:
      '0x4ac531549e821f48ea84e5fd33004d794bd6a53fe3fa7c63c35fac0e5ef382bb',
     transactionIndex: 5,
     rawLogs: [ [Object], [Object], [Object], [Object] ] },
  logs:
   [ { address: '0xC33E6D360e4B144EaA3071Af24A541e1C7d58c29',
       blockHash:
        '0x9f76110b935b706f88803c6764b95322660c36d33e39586639f7a5167ebb5ac2',
       blockNumber: 5200719,
       logIndex: 3,
       removed: false,
       transactionHash:
        '0x4ac531549e821f48ea84e5fd33004d794bd6a53fe3fa7c63c35fac0e5ef382bb',
       transactionIndex: 5,
       id: 'log_cf00f4df',
       event: 'ChainlinkRequested',
       args: [Result] } ] }
truffle(ropsten)> mycontract.data.call()
<BN: 0>
08:15:18@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) This time, it runs on my job. However, the oracle does not fulfill it. Here is the address of my oracle 0x6C224Ff8F88a8a25894144925D93b71495A41876. Do I need to put ether on it?
11:31:51@gitter_thodges-gh:matrix.orgThomas (Gitter) @tristanperalta What's the output from the node when it picks up the job? You say it doesn't fulfill it, but it picks up the job?
11:47:44@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) I can only say that my node pick it up because I can see it in the dashboard https://imgur.com/a/Si7wdQi and it says completed
11:47:46@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter)I also notice that there are no output for each task.
11:49:04@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) Do I need to do something to fulfill the request? The consumer contract is still zero <BN: 0>
11:52:12@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) This is the job tasks
{
  "initiators": [
    {
      "type": "runlog",
      "params": {
        "address": "0x0000000000000000000000000000000000000000"
      }
    }
  ],
  "tasks": [
    {
      "ID": 8,
      "CreatedAt": "2019-03-14T12:31:39.747023913+08:00",
      "UpdatedAt": "2019-03-14T12:31:39.747023913+08:00",
      "DeletedAt": null,
      "type": "httpget",
      "confirmations": 0,
      "params": {
      }
    },
    {
      "ID": 9,
      "CreatedAt": "2019-03-14T12:31:39.747149174+08:00",
      "UpdatedAt": "2019-03-14T12:31:39.747149174+08:00",
      "DeletedAt": null,
      "type": "jsonparse",
      "confirmations": 0,
      "params": {
      }
    },
    {
      "ID": 10,
      "CreatedAt": "2019-03-14T12:31:39.747283964+08:00",
      "UpdatedAt": "2019-03-14T12:31:39.747283964+08:00",
      "DeletedAt": null,
      "type": "multiply",
      "confirmations": 0,
      "params": {
      }
    }
  ],
  "startAt": null,
  "endAt": null
}
12:53:28@gitter_thodges-gh:matrix.orgThomas (Gitter)If you go back to the Overview tab, there should be some JSON for the Result column. Can you paste that here?
13:03:53@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) Is this it https://m.imgur.com/a/Si7wdQi ?
13:29:34@gitter_thodges-gh:matrix.orgThomas (Gitter) No, you'll click on Overview for the Job Spec (not the Run) and you'll see a table at the bottom. The last column is Result.
14:31:58@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) is this it {"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"}
14:33:55@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ... it `{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"}` => ... it ```json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"}```
14:34:06@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ... it ```json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"}``` => ... it ``` json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"} ```
14:34:24@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ... it ``` json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"} ``` => ... it ```json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"} ```
14:35:10@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ... it ```json{"address":"0x6C224Ff8F88a8a25894144925D93b71495A41876","dataPrefix":"0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8","functionSelector":"0x4ab0d190","path":"USD","result":"13230","times":100,"url":"https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD"} ``` => ... it ```json
14:35:14@gitter_tristanperalta:matrix.orgTristan Peralta (Gitter) (edited) ... it ```json => ... it ```json { "address": "0x6C224Ff8F88a8a25894144925D93b71495A41876", "dataPrefix": "0xb501b08cd0b405397a21dc32f4112c25d7352f1dc32c2d6aa5ce6641816c95660000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000c33e6d360e4b144eaa3071af24a541e1c7d58c294357855e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c8a0db8", "functionSelector": "0x4ab0d190", "path": "USD", "result": "13230", "times": 100, "url": "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD" } ```
15:37:10@gitter_thodges-gh:matrix.orgThomas (Gitter) I see the issue now. Your job does not ever write back to the blockchain. The last task is "multiply", and then the job ends. Go ahead and add the spec below to your node, and use that JobID:
{
  "initiators": [
    {
      "type": "runlog"
    }
  ],
  "tasks": [
    {
      "type": "httpGet"
    },
    {
      "type": "jsonParse"
    },
    {
      "type": "multiply"
    },
    {
      "type": "ethuint256"
    },
    {
      "type": "ethtx"
    }
  ]
}
15:38:18@gitter_thodges-gh:matrix.orgThomas (Gitter)However, the job that you showed me before had all of the required tasks. Does this latest one have a different ID?

There are no newer messages yet.


Back to Room List