Slide 1

Slide 1 text

Yo-an Lin (c9s) 2021 Chainlink Overview The ecosystem, how does it work? And the real side

Slide 2

Slide 2 text

ChainLink History • Chainlink was created in 2014, though it didn’t launch until 2017. Its founder is Sergey Nazarov, a 32-year-old entrepreneur who has a major presence in the crypto market. • Originally, the Chainlink network was designed to be a centralized oracle system that can verify incoming information. However, it has since morphed into what it is today: a decentralized oracle network that pairs with smart contracts to provide secure transactions using external data sources and APIs.

Slide 3

Slide 3 text

ChainLink Price History • When Chainlink’s LINK tokens fi rst hit the market in 2017, they traded for just above a cent in USD. The cryptocurrency’s market capitalization was also understandably quite low. • Prices stayed this way for a while, trading at less than a dollar per token until mid-2019, when the price per token increased, and it began trading at between $1 and $4 per token. However, for the latter half of 2020, LINK tokens began to increase in price even more to over $14. In February 2021, LINK reached an all-time high price of nearly $37 per token.

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

The Ecosystem Roles • Data Clients (mainly DeFi applications) • Smart Contract Developers • ChainLink Node Operator (CL Node)

Slide 6

Slide 6 text

The LINK token

Slide 7

Slide 7 text

The LINK token • ERC-677 (proposed by ChainLink developers) • The ERC-677 issue is not closed yet. Hence it’s not a approved standard. • ERC-20 compatible token • transferAndCall method (let you transfer a token and call a method on contract)

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Chainlink Node

Slide 12

Slide 12 text

Chainlink Node Requirement • An oracle contract (one-to-one relationship to the node) • PostgreSQL (for storing jobs, runs and wallet keys) • Low hardware requirement: 2GB~4GB memory is enough. • Blockchain node endpoint (for Ethereum, you can use geth, infura.io or chainstack) • Wallet key for the node. (For writing transactions to the blockchain) • Gas tokens in the wallet (for Ethereum, it’s ETH)

Slide 13

Slide 13 text

Oracle Contract Chainlink Node Chainlink Node Wallet Aggregator Contract Monitoring and Sign transaction transferAndCall Blockchain one-to-one relationship

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Chainlink Node Components • An Oracle contract • Jobs (Oracle contracts use JobID to call the API on the node) • Runs • Bridges • Core Adaptor • External Adaptor (an adaptor connecting to external web service via JSON api)

Slide 16

Slide 16 text

The Oracle Contract // SPDX-License-Identifier: MIT pragma solidity 0.4.24; import "@chainlink/contracts/src/v0.4/Oracle.sol";

Slide 17

Slide 17 text

Chainlink Node Jobs • Each Chainlink Node has its own unique job entry (unique job ID). • JobID is an UUID. • Oracle contracts use the JobID to execute the API de fi ned on the node. • Jobs de fi ne the task sequence.

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Chainlink Node Calling Jobs with core adaptor

Slide 21

Slide 21 text

Chainlink Node Calling Jobs with core adaptor

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Chainlink Node External Adaptor • External Adaptors are just web services with the required JSON request/ response speci fi cation. • You register the external adaptor via the Chainlink Node bridge, so that Jobs can get the data from the external adaptor. • An external adaptor can be a service written in any programming language.

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Price Feeds • Major Price Feeds are maintained by Chainlink O ffi cial. (They also pay the gas fee and LINK token to the oracle contracts) • Price feed contracts are not open sourced. They are hidden behind the proxy contract. • Some companies did the reverse engineering to implement their own price feed. • To join the major price feed oracle network, you need to join the Oracle olympics. • To add a new token to the o ffi cial price feed, $3M market cap is the minimal requirement.

Slide 27

Slide 27 text

Price Feed Using price feed as a Chainlink Client

Slide 28

Slide 28 text

The Official Price Feed Arch

Slide 29

Slide 29 text

Feed Registry

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

An internal document that describes the oracle olympics

Slide 33

Slide 33 text

Aggregator • Aggregator calls the oracle network. • There are 2 kinds of aggregator: • Flux Aggregator - no o ffi cial documents, only client tutorial. Contract- based, high cost. • O ff -chain Reporting (OCR), no o ffi cial documents as well. O ff -chain computing with a consensus algorithm.

Slide 34

Slide 34 text

Chainlink Market

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Wrap up • You receive LINK token from your oracle contract. • You burn ETH token as the gas token to send the result as a txn. • One oracle contract can only have one CL node running. • You don’t need LINK token to run a CL node. • Chainlink node are isolated, you can not join the price feed by yourself. • Price feed smart contracts are closed source. (Club member only) • No o ff -chain reporting and fl ux aggregator documentation. (Club member only)

Slide 40

Slide 40 text

Comments from Community

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Q & A