Skip to content
Discussion options

You must be logged in to vote

Hey @nsawit As we all know, interfaces allow us to talk to other contracts on the blockchain by just writing the function signatures without specifying the implementation of these function. When defining interfaces, we just write the functions we expect to call from the other contract and disregard their implementation altogether. In your case, we want to talk to a data feed that will give us the price of ethereum, so we "create" an interface for it. However, chainlink already created the interface for this contract and named it AggregatorV3Interface instead of copying and pasting this interface in our contract, we just import it from the github repo.

Okay now we have the interface, we ne…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nsawit
Comment options

Comment options

You must be logged in to vote
1 reply
@nsawit
Comment options

Answer selected by nsawit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants