Skip to content

Understanding interface() syntax #182

Answered by alwayscommit
gmluqa asked this question in Q&A
Discussion options

You must be logged in to vote

I had to read a little bit about this, I could be wrong. @PatrickAlphaC should confirm!

This syntax basically means that the "address" that holds the concrete implementation of how a price is computed resides on the blockchain. We cast that address into this interface so that it's easier for us programmers to invoke functions at that address, those functions become available to us through this interface, and the address is where the concrete implementation lives. Also, I think this interface information would be added to our contracts ABI and allow the EVM to invoke appropriate calls. It's an interfacing mechanism.

These links might help
https://ethereum.stackexchange.com/questions/114502…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gmluqa
Comment options

@ManuWeb3
Comment options

Answer selected by gmluqa
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