From a8288534bbd14787330dd23921fb0fb7465656ca Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 12:37:16 +0400 Subject: [PATCH 01/18] white headers fix --- _src/docs.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_src/docs.css b/_src/docs.css index 60a07e339b7..c0d2130e089 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -71,6 +71,10 @@ rdme-callout > *:first-child { color: #666; } +.footer-heading, .cl-box-blue h1, .cl-box-blue h2, .cl-box-blue h3 { + color: #fff; +} + /** Top Navigation */ #nav-container nav { position: relative; From 15cd54569a94efcc516299814733242afaf980ba Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 12:47:07 +0400 Subject: [PATCH 02/18] make hr hidden, css comments --- _src/docs.css | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index c0d2130e089..8fcf011a21f 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -22,6 +22,17 @@ ul li code { padding: 0.2em 0.4em; } +#page { + max-width: 1440px; + margin: 0px auto; + color: #666; +} + +hr { + visibility: hidden; +} + +/** Code Tabs */ code-tabs { max-width: 100%; overflow-x: scroll; @@ -45,6 +56,7 @@ code-tabs { display: none; } +/** Callouts */ rdme-callout { display: block; border-style: solid; @@ -60,22 +72,16 @@ rdme-callout > *:first-child { font-size: 17.5px; } -#nav-container { - height: 88px; - - border-bottom: 4px solid #dfe7fb; -} -#page { - max-width: 1440px; - margin: 0px auto; - color: #666; -} - +/** Headers */ .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; +} #nav-container nav { position: relative; text-decoration: none; @@ -161,6 +167,7 @@ navigation a.active:hover { box-shadow: rgb(12 22 44 / 32%) 0px 8px 24px -16px; } +/* Buttons */ .cl-button--ghost { display: inline-block; padding: 8px; From a31eb4029386aa43690453c6fa22a4a5c91d769a Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:54:36 +0400 Subject: [PATCH 03/18] make contracts page responsive --- _src/docs.css | 121 +++++++++++++++++++++++++++--------- contracts.md | 165 ++------------------------------------------------ 2 files changed, 98 insertions(+), 188 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index 8fcf011a21f..fb433a0cace 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -5,6 +5,10 @@ body { font-family: 'Circular', Tahoma, sans-serif; } +/* p { + font-size: 16px; +} */ + pre { background: #272822; color: #f8f8f2; @@ -167,26 +171,6 @@ navigation a.active:hover { box-shadow: rgb(12 22 44 / 32%) 0px 8px 24px -16px; } -/* Buttons */ -.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; @@ -216,6 +200,83 @@ tr:nth-child(2n) { position: relative; } +/** Rows, columns */ +.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; +} + +.center { + align-items: 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; +} + +@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%; + } +} + /** Fonts */ @font-face { font-family: 'Circular'; @@ -326,13 +387,13 @@ tr:nth-child(2n) { height: 380px; } -@media only screen and (min-width: 1100px) { +/* @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 { @@ -467,6 +528,7 @@ tr:nth-child(2n) { .cl-box-blue { background-color: #375bd2; border-radius: 16px; + color: #fff; } .cl-section--questions, @@ -806,12 +868,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; } @@ -838,3 +894,12 @@ input[type='reset'] { padding: 0; } } + +@media screen and (max-width: 1099px) { + .corner-floated { + clear: both; + float: none; + padding: 4px 16px 0; + margin-top: 0; + } +} \ No newline at end of file diff --git a/contracts.md b/contracts.md index 80c3de8981b..141fef5dcd0 100644 --- a/contracts.md +++ b/contracts.md @@ -6,9 +6,9 @@ permalink: / ---
-

Welcome to Chainlink Smart Contracts!

+

Welcome to Chainlink Contract Developers!

-
+

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 From 1da68568d3b7cc29fbc90e73b7678af0b4ae5f23 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:57:16 +0400 Subject: [PATCH 04/18] make nodes page responsive --- chainlink-nodes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chainlink-nodes.md b/chainlink-nodes.md index 2fa0990ac12..a4baf1cf97e 100644 --- a/chainlink-nodes.md +++ b/chainlink-nodes.md @@ -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.

@@ -184,7 +184,7 @@ date: Last Modified
- + From 66e6f5c6c4aee9ad652d43c267905f6e152e87e3 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:59:06 +0400 Subject: [PATCH 05/18] remove comments from nodes page --- chainlink-nodes.md | 155 --------------------------------------------- 1 file changed, 155 deletions(-) diff --git a/chainlink-nodes.md b/chainlink-nodes.md index a4baf1cf97e..c202e7fc88f 100644 --- a/chainlink-nodes.md +++ b/chainlink-nodes.md @@ -183,158 +183,3 @@ date: Last Modified />
- - From efdca9bacd9f687fc5a6951fd9e93c6248d2732c Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:00:26 +0400 Subject: [PATCH 06/18] remove getting started page --- _data/navigation.js | 1 - docs/Introduction/getting-started.html | 163 ------------------------- 2 files changed, 164 deletions(-) delete mode 100644 docs/Introduction/getting-started.html diff --git a/_data/navigation.js b/_data/navigation.js index a46665e67fa..4c0eb1d36ec 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', 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" ---- -
-
- - -
-
- -

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 From 832e7a85abe6bfcbf860b293810040e5ba2227eb Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:49:17 +0400 Subject: [PATCH 07/18] add remaining data providers --- _data/navigation.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_data/navigation.js b/_data/navigation.js index 4c0eb1d36ec..063e64e86b2 100644 --- a/_data/navigation.js +++ b/_data/navigation.js @@ -262,6 +262,22 @@ module.exports = { url: 'watchsignals', title: 'WatchSignals Luxury Watch Price Oracle', }, + { + url: 'genesis-volatility', + title: 'Genesis Volatility Cryptocurrency Options Oracle', + }, + { + url: 'dxfeed-oracle', + title: 'dxFeed Price Oracle', + }, + { + url: 'ciphertrace-defi-compli-oracle', + title: 'CipherTrace DeFi Compli Oracle', + }, + { + url: 'bookmaker-ratings-oracle', + title: 'Bookmaker Ratings Oracle' + }, ], }, ], From a450d8c3fbd4c3f88d5f17da3f504ca1113a148f Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:56:59 +0400 Subject: [PATCH 08/18] align all deploy buttons --- _src/docs.css | 17 ++++++++++++++++- .../bookmaker-ratings-oracle.md | 15 ++++++--------- .../chainlink-alarm-clock.md | 15 ++++++--------- .../ciphertrace-defi-compli-oracle.md | 15 ++++++--------- .../Data Provider Nodes/dns-ownership-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/dxfeed-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/genesis-volatility.md | 15 ++++++--------- docs/Data Provider Nodes/geodb-oracle-node.md | 15 ++++++--------- .../kraken-rates-oracle-node.md | 15 ++++++--------- docs/Data Provider Nodes/lcx-testnet.md | 15 ++++++--------- .../therundown-oracle-node.md | 15 ++++++--------- .../tiingo-eod-stock-price-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/watchsignals.md | 15 ++++++--------- .../Introduction/tutorials/advanced-tutorial.md | 6 +++--- .../tutorials/beginners-tutorial.md | 6 +++--- .../tutorials/intermediates-tutorial.md | 6 +++--- docs/Using Any API/make-a-http-get-request.md | 9 +++------ docs/Using Price Feeds/get-the-latest-price.md | 9 +++------ docs/Using Price Feeds/historical-price-data.md | 9 +++------ docs/Using Randomness/get-a-random-number.md | 9 +++------ 20 files changed, 109 insertions(+), 142 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index fb433a0cace..a7971bef1a4 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -222,6 +222,9 @@ tr:nth-child(2n) { .center { align-items: center; } +.text-center { + text-align: center; +} .cl-section { padding: 0 0 48px; justify-content: center; @@ -276,7 +279,13 @@ tr:nth-child(2n) { max-width: 100%; } } - +@media only screen and (min-width: 992px) { + .col-md-12 { + flex-basis: 100%; + max-width: 100%; + margin-left: 20px; + } +} /** Fonts */ @font-face { font-family: 'Circular'; @@ -437,6 +446,12 @@ tr:nth-child(2n) { transition: all 0.2s; } +@media only screen and (max-width: 576px) { + .cl-button--ghost { + margin-left: 10px; + } +} + .cl-button--ghost:hover { color: #ffffff; background-color: #375bd2; diff --git a/docs/Data Provider Nodes/bookmaker-ratings-oracle.md b/docs/Data Provider Nodes/bookmaker-ratings-oracle.md index ea7fbf261b4..cd61d0ca2a0 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..06de35d2b10 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..27a5db3bc08 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..fac563cce3a 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..00471e02005 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..8d08cb0f95b 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..ec87fac9ac9 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..c4a782cca11 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..85fe673d8f1 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..83d9382c90e 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..1a6ce685626 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..0db3ac08a41 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/tutorials/advanced-tutorial.md b/docs/Introduction/tutorials/advanced-tutorial.md index 10cbcacc114..7d17204a0aa 100644 --- a/docs/Introduction/tutorials/advanced-tutorial.md +++ b/docs/Introduction/tutorials/advanced-tutorial.md @@ -140,9 +140,9 @@ 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..a594a63046f 100644 --- a/docs/Introduction/tutorials/beginners-tutorial.md +++ b/docs/Introduction/tutorials/beginners-tutorial.md @@ -192,9 +192,9 @@ 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..2322f05944a 100644 --- a/docs/Introduction/tutorials/intermediates-tutorial.md +++ b/docs/Introduction/tutorials/intermediates-tutorial.md @@ -230,9 +230,9 @@ 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/make-a-http-get-request.md b/docs/Using Any API/make-a-http-get-request.md index cc272405d93..0891399fa07 100644 --- a/docs/Using Any API/make-a-http-get-request.md +++ b/docs/Using Any API/make-a-http-get-request.md @@ -28,12 +28,9 @@ 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..539ce9d391f 100644 --- a/docs/Using Price Feeds/get-the-latest-price.md +++ b/docs/Using Price Feeds/get-the-latest-price.md @@ -28,12 +28,9 @@ 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 diff --git a/docs/Using Price Feeds/historical-price-data.md b/docs/Using Price Feeds/historical-price-data.md index fd289dd6b23..b16e975572b 100644 --- a/docs/Using Price Feeds/historical-price-data.md +++ b/docs/Using Price Feeds/historical-price-data.md @@ -32,12 +32,9 @@ Price Feeds are updated in rounds. Rounds are identified by their `roundId`, whi ## Solidity ```javascript Kovan diff --git a/docs/Using Randomness/get-a-random-number.md b/docs/Using Randomness/get-a-random-number.md index f5165407993..225f522aeed 100644 --- a/docs/Using Randomness/get-a-random-number.md +++ b/docs/Using Randomness/get-a-random-number.md @@ -34,12 +34,9 @@ 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)**. ```javascript Kovan From 44e621d8b67681ced8d35436c7bc5794b08ec010 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 18:17:07 +0400 Subject: [PATCH 09/18] align buttons to the center --- docs/Using Price Feeds/get-the-latest-price.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/Using Price Feeds/get-the-latest-price.md b/docs/Using Price Feeds/get-the-latest-price.md index 539ce9d391f..2521609d7ce 100644 --- a/docs/Using Price Feeds/get-the-latest-price.md +++ b/docs/Using Price Feeds/get-the-latest-price.md @@ -27,12 +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; @@ -68,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 @@ -84,7 +84,7 @@ priceFeed.methods.latestRoundData().call() ```
-
+ @@ -102,7 +102,7 @@ print(latestData) ```
- From 1bc01abd6e8ec470e3ec490ddea3382507232c3b Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 12:37:16 +0400 Subject: [PATCH 10/18] white headers fix --- _src/docs.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_src/docs.css b/_src/docs.css index 19a1a92ba7c..c1174578902 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -72,6 +72,10 @@ rdme-callout > *:first-child { color: #666; } +.footer-heading, .cl-box-blue h1, .cl-box-blue h2, .cl-box-blue h3 { + color: #fff; +} + /** Top Navigation */ #nav-container nav { position: relative; From b24eeabb5578e50644d02ff10b3a16231672c97a Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 12:47:07 +0400 Subject: [PATCH 11/18] make hr hidden, css comments --- _src/docs.css | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index c1174578902..a25e932dcf0 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -22,6 +22,17 @@ ul li code { padding: 0.2em 0.4em; } +#page { + max-width: 1440px; + margin: 0px auto; + color: #666; +} + +hr { + visibility: hidden; +} + +/** Code Tabs */ code-tabs { max-width: 100%; overflow-x: scroll; @@ -46,6 +57,7 @@ code-tabs { display: none; } +/** Callouts */ rdme-callout { display: block; border-style: solid; @@ -61,22 +73,16 @@ rdme-callout > *:first-child { font-size: 17.5px; } -#nav-container { - height: 88px; - - border-bottom: 4px solid #dfe7fb; -} -#page { - max-width: 1440px; - margin: 0px auto; - color: #666; -} - +/** Headers */ .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; +} #nav-container nav { position: relative; text-decoration: none; @@ -147,6 +153,7 @@ navigation a.active:hover { +/* Buttons */ .cl-button--ghost { display: inline-block; padding: 8px; From b7716fb7fb7c9367680be0a56ccb59fba2de9440 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:54:36 +0400 Subject: [PATCH 12/18] make contracts page responsive --- _src/docs.css | 121 +++++++++++++++++++++++++++--------- contracts.md | 165 ++------------------------------------------------ 2 files changed, 98 insertions(+), 188 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index a25e932dcf0..40c85e9c0c2 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -5,6 +5,10 @@ body { font-family: 'Circular', Tahoma, sans-serif; } +/* p { + font-size: 16px; +} */ + pre { background: #272822; color: #f8f8f2; @@ -153,26 +157,6 @@ navigation a.active:hover { -/* Buttons */ -.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; @@ -202,6 +186,83 @@ tr:nth-child(2n) { position: relative; } +/** Rows, columns */ +.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; +} + +.center { + align-items: 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; +} + +@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%; + } +} + /** Fonts */ @font-face { font-family: 'Circular'; @@ -312,13 +373,13 @@ tr:nth-child(2n) { height: 380px; } -@media only screen and (min-width: 1100px) { +/* @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 { @@ -453,6 +514,7 @@ tr:nth-child(2n) { .cl-box-blue { background-color: #375bd2; border-radius: 16px; + color: #fff; } .cl-section--questions, @@ -792,12 +854,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; } @@ -821,3 +877,12 @@ input[type='reset'] { padding: 0; } } + +@media screen and (max-width: 1099px) { + .corner-floated { + clear: both; + float: none; + padding: 4px 16px 0; + margin-top: 0; + } +} \ No newline at end of file diff --git a/contracts.md b/contracts.md index 80c3de8981b..141fef5dcd0 100644 --- a/contracts.md +++ b/contracts.md @@ -6,9 +6,9 @@ permalink: / ---
-

Welcome to Chainlink Smart Contracts!

+

Welcome to Chainlink Contract Developers!

-
+

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 From a81884c6fed855b29197f2986ab02733ba81fa32 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:57:16 +0400 Subject: [PATCH 13/18] make nodes page responsive --- chainlink-nodes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chainlink-nodes.md b/chainlink-nodes.md index 2fa0990ac12..a4baf1cf97e 100644 --- a/chainlink-nodes.md +++ b/chainlink-nodes.md @@ -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.

@@ -184,7 +184,7 @@ date: Last Modified
- + From 30a99f243183cf78ebe6d7e9cf58f4af610ceedf Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 16:59:06 +0400 Subject: [PATCH 14/18] remove comments from nodes page --- chainlink-nodes.md | 155 --------------------------------------------- 1 file changed, 155 deletions(-) diff --git a/chainlink-nodes.md b/chainlink-nodes.md index a4baf1cf97e..c202e7fc88f 100644 --- a/chainlink-nodes.md +++ b/chainlink-nodes.md @@ -183,158 +183,3 @@ date: Last Modified />
- - From 07ebc3ad11d96bbea4de7b54309a62b0e7118f49 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:00:26 +0400 Subject: [PATCH 15/18] remove getting started page --- _data/navigation.js | 1 - docs/Introduction/getting-started.html | 163 ------------------------- 2 files changed, 164 deletions(-) delete mode 100644 docs/Introduction/getting-started.html diff --git a/_data/navigation.js b/_data/navigation.js index a46665e67fa..4c0eb1d36ec 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', 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" ---- -
-
- - -
-
- -

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 From 0d32ffe986c25571fd9661fdc8089c2ec4b1f850 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:49:17 +0400 Subject: [PATCH 16/18] add remaining data providers --- _data/navigation.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_data/navigation.js b/_data/navigation.js index 4c0eb1d36ec..063e64e86b2 100644 --- a/_data/navigation.js +++ b/_data/navigation.js @@ -262,6 +262,22 @@ module.exports = { url: 'watchsignals', title: 'WatchSignals Luxury Watch Price Oracle', }, + { + url: 'genesis-volatility', + title: 'Genesis Volatility Cryptocurrency Options Oracle', + }, + { + url: 'dxfeed-oracle', + title: 'dxFeed Price Oracle', + }, + { + url: 'ciphertrace-defi-compli-oracle', + title: 'CipherTrace DeFi Compli Oracle', + }, + { + url: 'bookmaker-ratings-oracle', + title: 'Bookmaker Ratings Oracle' + }, ], }, ], From be55dcae8a691eae1385a751dd77db7ac3bb3524 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 17:56:59 +0400 Subject: [PATCH 17/18] align all deploy buttons --- _src/docs.css | 17 ++++++++++++++++- .../bookmaker-ratings-oracle.md | 15 ++++++--------- .../chainlink-alarm-clock.md | 15 ++++++--------- .../ciphertrace-defi-compli-oracle.md | 15 ++++++--------- .../Data Provider Nodes/dns-ownership-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/dxfeed-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/genesis-volatility.md | 15 ++++++--------- docs/Data Provider Nodes/geodb-oracle-node.md | 15 ++++++--------- .../kraken-rates-oracle-node.md | 15 ++++++--------- docs/Data Provider Nodes/lcx-testnet.md | 15 ++++++--------- .../therundown-oracle-node.md | 15 ++++++--------- .../tiingo-eod-stock-price-oracle.md | 15 ++++++--------- docs/Data Provider Nodes/watchsignals.md | 15 ++++++--------- .../Introduction/tutorials/advanced-tutorial.md | 6 +++--- .../tutorials/beginners-tutorial.md | 6 +++--- .../tutorials/intermediates-tutorial.md | 6 +++--- docs/Using Any API/make-a-http-get-request.md | 9 +++------ docs/Using Price Feeds/get-the-latest-price.md | 9 +++------ docs/Using Price Feeds/historical-price-data.md | 9 +++------ docs/Using Randomness/get-a-random-number.md | 9 +++------ 20 files changed, 109 insertions(+), 142 deletions(-) diff --git a/_src/docs.css b/_src/docs.css index 40c85e9c0c2..dfcdc80b161 100644 --- a/_src/docs.css +++ b/_src/docs.css @@ -208,6 +208,9 @@ tr:nth-child(2n) { .center { align-items: center; } +.text-center { + text-align: center; +} .cl-section { padding: 0 0 48px; justify-content: center; @@ -262,7 +265,13 @@ tr:nth-child(2n) { max-width: 100%; } } - +@media only screen and (min-width: 992px) { + .col-md-12 { + flex-basis: 100%; + max-width: 100%; + margin-left: 20px; + } +} /** Fonts */ @font-face { font-family: 'Circular'; @@ -423,6 +432,12 @@ tr:nth-child(2n) { transition: all 0.2s; } +@media only screen and (max-width: 576px) { + .cl-button--ghost { + margin-left: 10px; + } +} + .cl-button--ghost:hover { color: #ffffff; background-color: #375bd2; diff --git a/docs/Data Provider Nodes/bookmaker-ratings-oracle.md b/docs/Data Provider Nodes/bookmaker-ratings-oracle.md index ea7fbf261b4..cd61d0ca2a0 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..06de35d2b10 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..27a5db3bc08 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..fac563cce3a 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..00471e02005 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..8d08cb0f95b 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..ec87fac9ac9 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..c4a782cca11 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..85fe673d8f1 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..83d9382c90e 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..1a6ce685626 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..0db3ac08a41 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/tutorials/advanced-tutorial.md b/docs/Introduction/tutorials/advanced-tutorial.md index 10cbcacc114..7d17204a0aa 100644 --- a/docs/Introduction/tutorials/advanced-tutorial.md +++ b/docs/Introduction/tutorials/advanced-tutorial.md @@ -140,9 +140,9 @@ 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..a594a63046f 100644 --- a/docs/Introduction/tutorials/beginners-tutorial.md +++ b/docs/Introduction/tutorials/beginners-tutorial.md @@ -192,9 +192,9 @@ 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..2322f05944a 100644 --- a/docs/Introduction/tutorials/intermediates-tutorial.md +++ b/docs/Introduction/tutorials/intermediates-tutorial.md @@ -230,9 +230,9 @@ 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/make-a-http-get-request.md b/docs/Using Any API/make-a-http-get-request.md index cc272405d93..0891399fa07 100644 --- a/docs/Using Any API/make-a-http-get-request.md +++ b/docs/Using Any API/make-a-http-get-request.md @@ -28,12 +28,9 @@ 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..539ce9d391f 100644 --- a/docs/Using Price Feeds/get-the-latest-price.md +++ b/docs/Using Price Feeds/get-the-latest-price.md @@ -28,12 +28,9 @@ 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 diff --git a/docs/Using Price Feeds/historical-price-data.md b/docs/Using Price Feeds/historical-price-data.md index fd289dd6b23..b16e975572b 100644 --- a/docs/Using Price Feeds/historical-price-data.md +++ b/docs/Using Price Feeds/historical-price-data.md @@ -32,12 +32,9 @@ Price Feeds are updated in rounds. Rounds are identified by their `roundId`, whi ## Solidity ```javascript Kovan diff --git a/docs/Using Randomness/get-a-random-number.md b/docs/Using Randomness/get-a-random-number.md index f5165407993..225f522aeed 100644 --- a/docs/Using Randomness/get-a-random-number.md +++ b/docs/Using Randomness/get-a-random-number.md @@ -34,12 +34,9 @@ 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)**. ```javascript Kovan From 264b4a9dccbea93fef82d4082b67e9095b66ac57 Mon Sep 17 00:00:00 2001 From: dmitrydao Date: Tue, 20 Apr 2021 18:17:07 +0400 Subject: [PATCH 18/18] align buttons to the center --- docs/Using Price Feeds/get-the-latest-price.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/Using Price Feeds/get-the-latest-price.md b/docs/Using Price Feeds/get-the-latest-price.md index 539ce9d391f..2521609d7ce 100644 --- a/docs/Using Price Feeds/get-the-latest-price.md +++ b/docs/Using Price Feeds/get-the-latest-price.md @@ -27,12 +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; @@ -68,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 @@ -84,7 +84,7 @@ priceFeed.methods.latestRoundData().call() ```
-
+ @@ -102,7 +102,7 @@ print(latestData) ```