diff --git a/_data/navigation.js b/_data/navigation.js index a46665e67fa..ce1eaa1d374 100644 --- a/_data/navigation.js +++ b/_data/navigation.js @@ -83,7 +83,6 @@ module.exports = { { section: 'INTRODUCTION', contents: [ - { title: 'Getting Started', url: 'getting-started' }, { title: 'Tutorials', url: 'tutorials', @@ -241,27 +240,43 @@ module.exports = { section: 'DATA PROVIDER NODES', contents: [ { - url: 'chainlink-alarm-clock', title: 'Chainlink Alarm Clock (Testnet)', + url: 'chainlink-alarm-clock' }, - { url: 'lcx-testnet', title: 'LCX (Testnet)' }, + { title: 'LCX (Testnet)', url: 'lcx-testnet' }, { - url: 'kraken-rates-oracle-node', title: 'Kraken Rates Oracle Node', + url: 'kraken-rates-oracle-node' }, { - url: 'tiingo-eod-stock-price-oracle', title: 'Tiingo EOD Stock Price Oracle', + url: 'tiingo-eod-stock-price-oracle' }, - { url: 'geodb-oracle-node', title: 'GeoDB Oracle Node' }, + { title: 'GeoDB Oracle Node', url: 'geodb-oracle-node' }, { - url: 'therundown-oracle-node', title: 'TheRunDown Oracle Node', + url: 'therundown-oracle-node', }, - { url: 'dns-ownership-oracle', title: 'DNS Ownership Oracle' }, + { title: 'DNS Ownership Oracle', url: 'dns-ownership-oracle' }, { - url: 'watchsignals', title: 'WatchSignals Luxury Watch Price Oracle', + url: 'watchsignals' + }, + { + title: 'Genesis Volatility Cryptocurrency Options Oracle', + url: 'genesis-volatility' + }, + { + title: 'dxFeed Price Oracle', + url: 'dxfeed-oracle' + }, + { + title: 'CipherTrace DeFi Compli Oracle', + url: 'ciphertrace-defi-compli-oracle' + }, + { + title: 'Bookmaker Ratings Oracle', + url: 'bookmaker-ratings-oracle' }, ], }, diff --git a/_src/docs.css b/_src/docs.css index 19a1a92ba7c..dfc765f0c99 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -22,6 +22,13 @@ ul li code { padding: 0.2em 0.4em; } +#page { + max-width: 1440px; + margin: 0px auto; + color: #666; +} + +/** Code Tabs */ code-tabs { max-width: 100%; overflow-x: scroll; @@ -46,13 +53,13 @@ code-tabs { display: none; } +/** Callouts */ rdme-callout { display: block; border-style: solid; border-width: 0 0 0 3.5px; border-color: rgb(80, 175, 81); background-color: rgb(243, 248, 243); - /* */ padding:16px 16px 4px 16px; margin: 16px 0; } @@ -61,18 +68,15 @@ rdme-callout > *:first-child { font-size: 17.5px; } +.footer-heading, .cl-box-blue h1, .cl-box-blue h2, .cl-box-blue h3 { + color: #fff; +} + +/** Top Navigation */ #nav-container { height: 88px; - border-bottom: 4px solid #dfe7fb; } -#page { - max-width: 1440px; - margin: 0px auto; - color: #666; -} - -/** Top Navigation */ #nav-container nav { position: relative; text-decoration: none; @@ -141,27 +145,6 @@ navigation a.active:hover { color: #384248; } - - -.cl-button--ghost { - display: inline-block; - padding: 8px; - padding-left: 20px; - padding-right: 20px; - border: 2px solid #375bd2; - margin: 0 0.3em 0.3em 0; - border-radius: 6px; - box-sizing: border-box; - text-decoration: none !important; - color: #375bd2; - text-align: center; - transition: all 0.2s; -} -.cl-button--ghost:hover { - color: #fff; - background-color: #375bd2; -} - /** Tables */ th { text-align: left; @@ -191,6 +174,54 @@ tr:nth-child(2n) { position: relative; } +.row { + box-sizing: border-box; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 0; + -ms-flex: 0 1 auto; + flex: 0 1 auto; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + margin-right: -.5rem; + margin-left: -.5rem; +} +.cl-button-container{ + align-items: center; + text-align: center; +} +.cl-section { + padding: 0 0 48px; + justify-content: center; + align-content: space-between; +} +.markdown-body .cl-section { + padding: 0 0 48px; + text-align: center; +} +.markdown-body img { + box-sizing: content-box; + display: inline-block; + vertical-align: middle; + max-width: 48px; + margin-left: auto; + margin-right: auto; + border-style: none; + outline: none !important; +} + +.cl-section--one { + margin-top: 30px; +} +.cl-section--one h3 { + font-size: 18px; +} + /** Fonts */ @font-face { font-family: 'Circular'; @@ -284,46 +315,10 @@ tr:nth-child(2n) { position: relative; } -@media all and (max-width: 1100px) { - .cl-custom-page { - margin-right: 30px; - } -} - -@media only screen and (max-width: 1023px) { - .cl-featuredcard { - height: auto; - margin-bottom: 20px; - } -} - .cl-section--one .cl-featuredcard { height: 380px; } -@media only screen and (min-width: 1100px) { - .cl-section--one .cl-featuredcard .cl-button--ghost { - transform: translateX(-50%); - bottom: 50px; - position: absolute; - } -} - -@media only screen and (min-width: 1023px) and (max-width: 1099px) { - .cl-section--one .cl-featuredcard .cl-button--ghost { - transform: translateX(-50%); - bottom: 30px; - position: absolute; - width: 80%; - } -} - -@media only screen and (max-width: 1023px) { - .cl-section--one .cl-featuredcard { - height: auto; - } -} - .cl-image-featured { display: inline-block; width: 50px; @@ -375,12 +370,6 @@ tr:nth-child(2n) { border-radius: 16px; } -@media only screen and (max-width: 1023px) { - .cl-box { - padding: 24px 24px; - } -} - .cl-box__lightblue { background-color: #f5f7fe; } @@ -399,15 +388,6 @@ tr:nth-child(2n) { margin-bottom: 40px; } -@media only screen and (max-width: 1023px) { - .cl-featuredcard-docs { - padding: 16px; - border-radius: 8px; - border: 1px solid #dee7fc; - margin-bottom: 20px; - } -} - .divider { width: 100%; height: 1px; @@ -442,6 +422,7 @@ tr:nth-child(2n) { .cl-box-blue { background-color: #375bd2; border-radius: 16px; + color: #fff; } .cl-section--questions, @@ -453,12 +434,6 @@ tr:nth-child(2n) { padding: 2px 1px; } -@media only screen and (max-width: 400px) { - .cl-section--questions a { - display: block; - } -} - /** Copied from chain.link **/ html { font-family: sans-serif; @@ -781,12 +756,6 @@ input[type='reset'] { .nav-content > div { width: 100%; } - .corner-floated { - clear: both; - float: none; - padding: 4px 16px 0; - margin-top: 0; - } #nav-container { height: auto; } @@ -810,3 +779,86 @@ input[type='reset'] { padding: 0; } } +@media only screen and (max-width: 1023px) { + .cl-featuredcard { + height: auto; + margin-bottom: 20px; + } + .cl-section--one .cl-featuredcard { + height: auto; + } + .cl-box { + padding: 24px 24px; + } + .cl-featuredcard-docs { + padding: 16px; + border-radius: 8px; + border: 1px solid #dee7fc; + margin-bottom: 20px; + } +} +@media screen and (max-width: 1099px) { + .corner-floated { + clear: both; + float: none; + padding: 4px 16px 0; + margin-top: 0; + } +} +@media only screen and (min-width: 576px) { + .col-md-4 { + flex-basis: 32%; + max-width: 32%; + margin: 0 10px 10px 0; + } + .col-md-4:last-child { + margin-right: 0; + } +} +@media only screen and (min-width: 768px) { + .col-md-6 { + flex-basis: 48%; + max-width: 48%; + margin: 0 10px 10px 0; + } + .col-md-6:last-child { + margin-right: 0; + } +} +@media only screen and (min-width: 576px) and (max-width: 1140px) { + .col-sm-12 { + -ms-flex-preferred-size: 100%; + flex-basis: 100%; + max-width: 100%; + } +} +@media only screen and (min-width: 992px) { + .col-md-12 { + flex-basis: 100%; + max-width: 100%; + margin-left: 20px; + } +} +@media only screen and (max-width: 400px) { + .cl-section--questions a { + display: block; + } +} +@media only screen and (max-width: 576px) { + .cl-button--ghost { + margin-left: 10px; + } +} +@media only screen and (min-width: 1023px) and (max-width: 1099px) { + .cl-section--one .cl-featuredcard .cl-button--ghost { + transform: translateX(-50%); + bottom: 30px; + position: absolute; + width: 80%; + } +} +@media all and (max-width: 1100px) { + .cl-custom-page { + margin-right: 30px; + } +} \ No newline at end of file diff --git a/chainlink-nodes.md b/chainlink-nodes.md index 2fa0990ac12..5ea448a8417 100644 --- a/chainlink-nodes.md +++ b/chainlink-nodes.md @@ -1,10 +1,10 @@ --- layout: nodes.liquid date: Last Modified +title: "Welcome to Chainlink Node Operation!" ---
-

Welcome to Chainlink Node Operators!

@@ -14,7 +14,7 @@ date: Last Modified class="cl-image-featured" />

Set Up a Chainlink Node

-

Run your own node on a local machine or remote server.

+

Install and Run your own node on a local machine or remote server.

-

Add External Adapters

+

Add External Adapters to Your Node

Bring high-quality data and premium web APIs to contract developers.

@@ -183,158 +183,3 @@ date: Last Modified />
- - - diff --git a/contracts.md b/contracts.md index 80c3de8981b..88bac8d5abf 100644 --- a/contracts.md +++ b/contracts.md @@ -1,14 +1,14 @@ --- layout: nodes.liquid section: smartContract +title: "Welcome to Chainlink Smart Contract Development!" date: Last Modified permalink: / ---
-

Welcome to Chainlink Smart Contracts!

-
+

Get Price Feeds in your Smart Contracts

-

Retrieve the latest prices of assets in your smart contracts.

+

Retrieve the latest prices and data points of assets in your smart contracts.

-

Discover Chainlinks

+

Discover On-chain Reference Data

Find everything you need to build your connected smart contracts on the world's first oracle market @@ -189,159 +189,4 @@ permalink: / width="30%" />

-
- - - +
\ No newline at end of file diff --git a/docs/Data Provider Nodes/bookmaker-ratings-oracle.md b/docs/Data Provider Nodes/bookmaker-ratings-oracle.md index ea7fbf261b4..4524b1e69c6 100644 --- a/docs/Data Provider Nodes/bookmaker-ratings-oracle.md +++ b/docs/Data Provider Nodes/bookmaker-ratings-oracle.md @@ -38,15 +38,6 @@ JobID: `1ceaa2fb40e040f6a19507ceaed23fd1` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -99,6 +90,12 @@ contract BookmakerRatingsChainlink is ChainlinkClient { } ``` + + # Tasks * Bookmaker Ratings * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/chainlink-alarm-clock.md b/docs/Data Provider Nodes/chainlink-alarm-clock.md index 29d3612fbf7..89ad8859f85 100644 --- a/docs/Data Provider Nodes/chainlink-alarm-clock.md +++ b/docs/Data Provider Nodes/chainlink-alarm-clock.md @@ -35,15 +35,6 @@ JobID: 982105d690504c5d9ce374d040c08654 Import `ChainlinkClient.sol` into your contract so you can inherit the `ChainlinkClient` behavior. - - ```javascript pragma solidity ^0.4.24; @@ -62,6 +53,12 @@ contract ChainlinkAlarmClock is ChainlinkClient { } ``` + + # Tasks - [Sleep](../adapters#sleep) diff --git a/docs/Data Provider Nodes/ciphertrace-defi-compli-oracle.md b/docs/Data Provider Nodes/ciphertrace-defi-compli-oracle.md index 0ae8185df34..e158e316182 100644 --- a/docs/Data Provider Nodes/ciphertrace-defi-compli-oracle.md +++ b/docs/Data Provider Nodes/ciphertrace-defi-compli-oracle.md @@ -44,15 +44,6 @@ JobID: `6fb6404456574a999a88ed4aaea5a475` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -105,6 +96,12 @@ contract CipherTraceChainlink is ChainlinkClient { } ``` + + # Tasks * DeFi Compli * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/dns-ownership-oracle.md b/docs/Data Provider Nodes/dns-ownership-oracle.md index 2c69111bb56..f3e58db6112 100644 --- a/docs/Data Provider Nodes/dns-ownership-oracle.md +++ b/docs/Data Provider Nodes/dns-ownership-oracle.md @@ -44,15 +44,6 @@ JobID: `f3daed2990114e98906aaf21c4172da3` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -105,6 +96,12 @@ contract DnsOwnershipChainlink is ChainlinkClient { } ``` + + # Tasks * DNS Record Check * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/dxfeed-oracle.md b/docs/Data Provider Nodes/dxfeed-oracle.md index 7d7a4dc2ee5..973cb13e409 100644 --- a/docs/Data Provider Nodes/dxfeed-oracle.md +++ b/docs/Data Provider Nodes/dxfeed-oracle.md @@ -38,15 +38,6 @@ JobID: `c37e674b864a47ccb33096ca007d64e4` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -99,6 +90,12 @@ contract DxFeedChainlink is ChainlinkClient { } ``` + + # Tasks * dxFeed * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/genesis-volatility.md b/docs/Data Provider Nodes/genesis-volatility.md index d69bc91534f..6fcb74eedc2 100644 --- a/docs/Data Provider Nodes/genesis-volatility.md +++ b/docs/Data Provider Nodes/genesis-volatility.md @@ -50,15 +50,6 @@ JobID: `5428e2d7e7d24b849878412c0aa9f821` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -111,6 +102,12 @@ contract REPLACE_MEChainlink is ChainlinkClient { } ``` + + # Tasks * GVol * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/geodb-oracle-node.md b/docs/Data Provider Nodes/geodb-oracle-node.md index 1b1d146b83e..c3641431b9f 100644 --- a/docs/Data Provider Nodes/geodb-oracle-node.md +++ b/docs/Data Provider Nodes/geodb-oracle-node.md @@ -47,15 +47,6 @@ JobID: `f88bd47507b245babccefc9f81ee1b72` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -108,6 +99,12 @@ contract GeoDBChainlink is ChainlinkClient { } ``` + + # Tasks * GeoDB diff --git a/docs/Data Provider Nodes/kraken-rates-oracle-node.md b/docs/Data Provider Nodes/kraken-rates-oracle-node.md index 4fd31941f44..f0cfe0540af 100644 --- a/docs/Data Provider Nodes/kraken-rates-oracle-node.md +++ b/docs/Data Provider Nodes/kraken-rates-oracle-node.md @@ -45,15 +45,6 @@ JobID: contact `dataproviders@chain.link` for details # Create your contract - - Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. ```javascript Solidity 4 @@ -108,6 +99,12 @@ contract KrakenChainlink is ChainlinkClient { } ``` + + # Tasks - [Kraken](../external-adapters) diff --git a/docs/Data Provider Nodes/lcx-testnet.md b/docs/Data Provider Nodes/lcx-testnet.md index 53e062c4aec..fb624c039aa 100644 --- a/docs/Data Provider Nodes/lcx-testnet.md +++ b/docs/Data Provider Nodes/lcx-testnet.md @@ -39,15 +39,6 @@ JobID: 81c63592d97a4485b1d1339b3578e07f Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -100,6 +91,12 @@ contract LCXChainlink is ChainlinkClient { } ``` + + # Tasks - [LCX](../external-adapters) diff --git a/docs/Data Provider Nodes/therundown-oracle-node.md b/docs/Data Provider Nodes/therundown-oracle-node.md index e7935f7e8fe..5841a424a39 100644 --- a/docs/Data Provider Nodes/therundown-oracle-node.md +++ b/docs/Data Provider Nodes/therundown-oracle-node.md @@ -45,15 +45,6 @@ JobID: `96cf91943c8f40b19c6eb401f49f36f9` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -106,6 +97,12 @@ contract TheRundownChainlink is ChainlinkClient { } ``` + + # Tasks * TheRundown * [Copy](../adapters#copy) diff --git a/docs/Data Provider Nodes/tiingo-eod-stock-price-oracle.md b/docs/Data Provider Nodes/tiingo-eod-stock-price-oracle.md index da9ec26c051..c486d414377 100644 --- a/docs/Data Provider Nodes/tiingo-eod-stock-price-oracle.md +++ b/docs/Data Provider Nodes/tiingo-eod-stock-price-oracle.md @@ -49,15 +49,6 @@ JobID: `2a3a607ac0254695935be32e9390178d` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -110,6 +101,12 @@ contract TiingoChainlink is ChainlinkClient { } ``` + + # Tasks - [Tiingo](https://market.link/adapters/ce0a34cf-306e-4fa4-8d27-271028694cb2/data-sources?network=1) diff --git a/docs/Data Provider Nodes/watchsignals.md b/docs/Data Provider Nodes/watchsignals.md index a1901fdb3b8..50b9ec13867 100644 --- a/docs/Data Provider Nodes/watchsignals.md +++ b/docs/Data Provider Nodes/watchsignals.md @@ -38,15 +38,6 @@ JobID: `2bbfde60662c4f0f9ef6f46567ca7fbc ` Import `ChainlinkClient.sol` into your contract so you can inherit the Chainlink behavior. - - ```javascript Solidity 4 pragma solidity ^0.4.24; @@ -99,6 +90,12 @@ contract WatchsignalsChainlink is ChainlinkClient { } ``` + + # Tasks * WatchSignals * [Copy](../adapters#copy) diff --git a/docs/Introduction/getting-started.html b/docs/Introduction/getting-started.html deleted file mode 100644 index 0c57190cc98..00000000000 --- a/docs/Introduction/getting-started.html +++ /dev/null @@ -1,163 +0,0 @@ ---- -layout: nodes.liquid -section: smartContract -date: Last Modified -title: "Getting Started" -permalink: "docs/getting-started/" -hidden: false -metadata: - title: "Getting Started - Chainlink" - description: "Explore Chainlink's comprehensive guides and documentation to help you start working with Chainlink as quickly as possible." - image: - 0: "https://files.readme.io/670379d-OpenGraph_V3.png" - 1: "OpenGraph V3.png" - 2: 1459 - 3: 1459 - 4: "#dbe1f8" ---- -
-
-
-
- -

Get Crypto Prices in your Smart Contracts

-

Retrieve the latest prices of assets in your smart contracts with a single function call.

- Learn - More -
-
- -
-
- -

Generate Verifiable Random Numbers

-

Use Chainlink VRF to consume randomness in your smart contracts.

- Learn - More -
-
- -
-
-

Call External APIs from Smart Contracts

-

Request & Receive data from any API using the Chainlink contract library.

- Learn More - -
-
-
- - -
- -

New to Ethereum and Smart Contracts?

-

Build your first smart contract connected to off-chain data with our Beginner's Walkthrough

- Start Building -
- -
-
-
-
-
-

Chainlink Architecture

-

Discover how the Chainlink ecosystem bridges the gap between off-chain data and smart contracts.

- Architecture -
-
-
-
-

Discover Chainlinks

-

Find everything you need to build your connected smart contracts on the world's first - oracle market

- Chainlink Market ↗ -
-
-
-
-
- -
-

Chainlink Documentation

- - -
- - -
-

Explore Chainlink Developer Tools

- -
- -
-
-

Still have questions?

-

Find answers to our most commonly asked questions.

- - -

中文开发者社区

- -
-
-
\ No newline at end of file diff --git a/docs/Introduction/tutorials/advanced-tutorial.md b/docs/Introduction/tutorials/advanced-tutorial.md index 10cbcacc114..cddca876148 100644 --- a/docs/Introduction/tutorials/advanced-tutorial.md +++ b/docs/Introduction/tutorials/advanced-tutorial.md @@ -139,10 +139,10 @@ contract APIConsumer is ChainlinkClient { } ``` -
- + Let's walk through what's happening here: diff --git a/docs/Introduction/tutorials/beginners-tutorial.md b/docs/Introduction/tutorials/beginners-tutorial.md index ff33adc81ee..5274451b63a 100644 --- a/docs/Introduction/tutorials/beginners-tutorial.md +++ b/docs/Introduction/tutorials/beginners-tutorial.md @@ -191,10 +191,10 @@ We have the code. What we need next is a compiler. Fortunately for us, Remix also has support for gist. This means that Remix can load code from Github, and in this case, `PriceConsumerV3.sol` Click the button below to open a new tab, then once Remix has loaded, find the `gists` folder in the File Explorer on the left-hand side, and click on the file to open the code in the editor. -
- + [block:image] { diff --git a/docs/Introduction/tutorials/intermediates-tutorial.md b/docs/Introduction/tutorials/intermediates-tutorial.md index 90b1213f6c4..a314046130e 100644 --- a/docs/Introduction/tutorials/intermediates-tutorial.md +++ b/docs/Introduction/tutorials/intermediates-tutorial.md @@ -229,10 +229,10 @@ function getHouseName(uint256 id) private pure returns (string memory) { See the full contract in Remix! (We've added a few helper functions in there which should make using the contract easier and more flexible. Have a play around with it to understand all the internal workings). -
- + # 5. Deployment diff --git a/docs/Using Any API/existing-job-request.md b/docs/Using Any API/existing-job-request.md index d005718fddc..09d9c42a6c3 100644 --- a/docs/Using Any API/existing-job-request.md +++ b/docs/Using Any API/existing-job-request.md @@ -29,7 +29,7 @@ This example uses the +
diff --git a/docs/Using Any API/make-a-http-get-request.md b/docs/Using Any API/make-a-http-get-request.md index cc272405d93..c45e427b384 100644 --- a/docs/Using Any API/make-a-http-get-request.md +++ b/docs/Using Any API/make-a-http-get-request.md @@ -27,13 +27,10 @@ Currently, any return value must fit within 32 bytes, if the value is bigger tha > > Making a GET request will fail unless your deployed contract has enough LINK to pay for it. **Learn how to [Acquire testnet LINK](../acquire-link) and [Fund your contract](../fund-your-contract)**. -
- - + ```javascript Kovan diff --git a/docs/Using Price Feeds/get-the-latest-price.md b/docs/Using Price Feeds/get-the-latest-price.md index 568e837934c..9683c3b5568 100644 --- a/docs/Using Price Feeds/get-the-latest-price.md +++ b/docs/Using Price Feeds/get-the-latest-price.md @@ -27,15 +27,6 @@ This page explains how to get the latest price of Ethereum (ETH) inside smart co To consume price data, your smart contract should reference `AggregatorV3Interface`, which defines the external functions implemented by Price Feeds. - - ```javascript Kovan pragma solidity ^0.6.7; @@ -71,6 +62,12 @@ contract PriceConsumerV3 { } ``` + + The `latestRoundData` function returns five values representing information about the latest price data. See [API Reference](../price-feeds-api-reference) for more details. ## Javascript @@ -86,8 +83,8 @@ priceFeed.methods.latestRoundData().call() }); ``` -
-
+
+ @@ -104,10 +101,10 @@ latestData = contract.functions.latestRoundData().call() print(latestData) ``` -
- + # How Do Price Feeds Get Their Data? diff --git a/docs/Using Price Feeds/historical-price-data.md b/docs/Using Price Feeds/historical-price-data.md index fd289dd6b23..8ec2becbf4c 100644 --- a/docs/Using Price Feeds/historical-price-data.md +++ b/docs/Using Price Feeds/historical-price-data.md @@ -31,13 +31,10 @@ Price Feeds are updated in rounds. Rounds are identified by their `roundId`, whi ## Solidity -
- - + ```javascript Kovan @@ -104,7 +101,7 @@ priceFeed.methods.getRoundData(validId).call() ``` [block:html] { - "html": "
\n\t\n
" + "html": "
\n\t\n
" } [/block] ## Python @@ -123,7 +120,7 @@ historicalData = contract.functions.getRoundData(validRoundId).call() print(historicalData) ``` -
+
diff --git a/docs/Using Randomness/get-a-random-number.md b/docs/Using Randomness/get-a-random-number.md index f5165407993..d031213887e 100644 --- a/docs/Using Randomness/get-a-random-number.md +++ b/docs/Using Randomness/get-a-random-number.md @@ -33,13 +33,10 @@ The contract should own enough LINK to pay the specified fee. The beginner walkt > > Requesting randomness will fail unless your deployed contract has enough LINK to pay for it. **Learn how to [Acquire testnet LINK](../acquire-link) and [Fund your contract](../fund-your-contract)**. -