0.6.0-6 • Published 5 years ago

chainlink-test-helpers v0.6.0-6

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

Chainlink Test Helpers

Source for external Chainlinked contract testing helpers.

Click here to get started writing Chainlinked contracts.

Usage

Add to your project

npm install chainlink-test-helpers --save

Add to tests

const h = require("chainlink-test-helpers");

Helper Methods

Below are some examples of how to use the helper methods.

assertActionThrows

await h.assertActionThrows(async () => {
  await cc.createRequest(jobId, url, path, times, {from: consumer});
});

decodeRunRequest

let tx = await cc.createRequest(jobId, url, path, times, {from: consumer});
request = h.decodeRunRequest(tx.receipt.rawLogs[3]);

fulfillOracleRequest

let tx = await cc.createRequest(jobId, url, path, times, {from: consumer});
request = h.decodeRunRequest(tx.receipt.rawLogs[3]);
await h.fulfillOracleRequest(oc, request, response, {from: oracleNode});

increaseBlocks

h.increaseBlocks(25)

increaseTime5Minutes

h.increaseTime5Minutes();
0.6.1-beta-9

5 years ago

0.6.1-beta-8

5 years ago

0.6.0-6

5 years ago

0.6.1

5 years ago

0.6.1-beta-7

5 years ago

0.6.1-beta-6

5 years ago

0.6.1-beta-5

5 years ago

0.6.1-beta-4

5 years ago

0.6.1-beta-3

5 years ago

0.6.1-beta-2

5 years ago

0.6.1-beta-1

5 years ago

0.6.0-5

5 years ago

0.6.0-4

5 years ago

0.6.0-3

5 years ago

0.6.0-2

5 years ago

0.6.0-1

5 years ago

0.6.0

5 years ago