-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ci/ethereum_test to check echo_server/RunLog #276
Changes from all commits
4c79500
05db33a
3cfdbcc
9e0cf50
7562fc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const fs = require("fs"); | ||
const request = require("request-promise"); | ||
const util = require('util'); | ||
const url = "http://chainlink:twochains@localhost:6688/v2/specs"; | ||
|
||
module.exports = { | ||
// Deploys chainlink jobs. | ||
job: async function(filename) { | ||
let readFile = util.promisify(fs.readFile); | ||
return await readFile(filename, 'utf8').then((file) => { | ||
let data = JSON.parse(file); | ||
console.log(`Posting to ${url}:\n`, data); | ||
return request.post(url, {json: data}); | ||
}); | ||
} | ||
}; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
let chainlinkDeployer = require("../chainlink_deployer.js"); | ||
let LinkToken = artifacts.require("../node_modules/smartcontractkit/chainlink/solidity/contracts/LinkToken.sol"); | ||
let Oracle = artifacts.require("../node_modules/smartcontractkit/chainlink/solidity/contracts/Oracle.sol"); | ||
let RunLog = artifacts.require("./RunLog.sol"); | ||
|
||
module.exports = function(deployer) { | ||
deployer.deploy(RunLog, LinkToken.address, Oracle.address); | ||
module.exports = function(truffleDeployer) { | ||
truffleDeployer.then(async () => { | ||
await chainlinkDeployer.job("only_jobid_logs_job.json").then(async function(body) { | ||
console.log(`Deploying Consumer Contract with JobID ${body.id}`); | ||
await truffleDeployer.deploy(RunLog, LinkToken.address, Oracle.address, body.id); | ||
}).catch(console.log); | ||
}); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ let LinkToken = artifacts.require("../node_modules/smartcontractkit/chainlink/so | |
let RunLog = artifacts.require("./RunLog.sol"); | ||
let devnetAddress = "0x9CA9d2D5E04012C9Ed24C0e513C9bfAa4A2dD77f"; | ||
|
||
module.exports = async function(deployer) { | ||
await LinkToken.deployed().then(async function(linkInstance) { | ||
module.exports = function(deployer) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently truffle migrations don't support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe still return result of LinkToken.deployed? Not sure about Truffle's internals, but in tests it waits for returned promises to finish. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried that to no avail and felt this was the most confident solution. |
||
LinkToken.deployed().then(async function(linkInstance) { | ||
await RunLog.deployed().then(async function(runLogInstance) { | ||
await linkInstance.transfer(runLogInstance.address, web3.toWei(1000)); | ||
await linkInstance.transfer(devnetAddress, web3.toWei(1000)); | ||
}); | ||
}).catch(console.log); | ||
}); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5132,6 +5132,21 @@ replace-ext@^1.0.0: | |
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" | ||
|
||
[email protected]: | ||
version "1.1.1" | ||
resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" | ||
dependencies: | ||
lodash "^4.13.1" | ||
|
||
request-promise@^4.2.2: | ||
version "4.2.2" | ||
resolved "https://registry.yarnpkg.com/request-promise/-/request-promise-4.2.2.tgz#d1ea46d654a6ee4f8ee6a4fea1018c22911904b4" | ||
dependencies: | ||
bluebird "^3.5.0" | ||
request-promise-core "1.1.1" | ||
stealthy-require "^1.1.0" | ||
tough-cookie ">=2.3.3" | ||
|
||
request@2, request@^2.74.0: | ||
version "2.85.0" | ||
resolved "https://registry.yarnpkg.com/request/-/request-2.85.0.tgz#5a03615a47c61420b3eb99b7dba204f83603e1fa" | ||
|
@@ -5676,6 +5691,10 @@ statuses@~1.3.1: | |
version "1.3.1" | ||
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" | ||
|
||
stealthy-require@^1.1.0: | ||
version "1.1.1" | ||
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" | ||
|
||
stream-browserify@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" | ||
|
@@ -5940,7 +5959,7 @@ to-regex@^3.0.1, to-regex@^3.0.2: | |
regex-not "^1.0.2" | ||
safe-regex "^1.1.0" | ||
|
||
tough-cookie@~2.3.0, tough-cookie@~2.3.3: | ||
tough-cookie@>=2.3.3, tough-cookie@~2.3.0, tough-cookie@~2.3.3: | ||
version "2.3.4" | ||
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" | ||
dependencies: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1736,7 +1736,7 @@ [email protected], debug@^3.1.0: | |
dependencies: | ||
ms "2.0.0" | ||
|
||
debuglog@*, debuglog@^1.0.1: | ||
debuglog@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" | ||
|
||
|
@@ -3042,7 +3042,7 @@ import-local@^1.0.0: | |
pkg-dir "^2.0.0" | ||
resolve-cwd "^2.0.0" | ||
|
||
imurmurhash@*, imurmurhash@^0.1.4: | ||
imurmurhash@^0.1.4: | ||
version "0.1.4" | ||
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" | ||
|
||
|
@@ -3790,36 +3790,18 @@ lodash._basecreate@^3.0.0: | |
version "3.0.3" | ||
resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" | ||
|
||
lodash._baseindexof@*: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c" | ||
|
||
lodash._baseuniq@~4.6.0: | ||
version "4.6.0" | ||
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8" | ||
dependencies: | ||
lodash._createset "~4.0.0" | ||
lodash._root "~3.0.0" | ||
|
||
lodash._bindcallback@*: | ||
version "3.0.1" | ||
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" | ||
|
||
lodash._cacheindexof@*: | ||
version "3.0.2" | ||
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92" | ||
|
||
lodash._createcache@*: | ||
version "3.1.2" | ||
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093" | ||
dependencies: | ||
lodash._getnative "^3.0.0" | ||
|
||
lodash._createset@~4.0.0: | ||
version "4.0.3" | ||
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26" | ||
|
||
lodash._getnative@*, lodash._getnative@^3.0.0: | ||
lodash._getnative@^3.0.0: | ||
version "3.9.1" | ||
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" | ||
|
||
|
@@ -3863,10 +3845,6 @@ lodash.keys@^3.0.0: | |
lodash.isarguments "^3.0.0" | ||
lodash.isarray "^3.0.0" | ||
|
||
lodash.restparam@*: | ||
version "3.6.1" | ||
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" | ||
|
||
lodash.union@~4.6.0: | ||
version "4.6.0" | ||
resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" | ||
|
@@ -5351,7 +5329,7 @@ readable-stream@~1.1.10: | |
isarray "0.0.1" | ||
string_decoder "~0.10.x" | ||
|
||
readdir-scoped-modules@*, readdir-scoped-modules@^1.0.0: | ||
readdir-scoped-modules@^1.0.0: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.0.2.tgz#9fafa37d286be5d92cbaebdee030dc9b5f406747" | ||
dependencies: | ||
|
@@ -6664,7 +6642,7 @@ v8-compile-cache@^1.1.2: | |
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-1.1.2.tgz#8d32e4f16974654657e676e0e467a348e89b0dc4" | ||
|
||
validate-npm-package-license@*, validate-npm-package-license@^3.0.1: | ||
validate-npm-package-license@^3.0.1: | ||
version "3.0.3" | ||
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" | ||
dependencies: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
in another window
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node echo.js
locks up the current window.