Say we have contract A (our contract) and B (existing contract). Contract A wants to call function b in contract B, but to do so it needs to know how to call that function.
When compiling contract A, you can either import the whole code of contract B. Alternatively, you can simply refer to contract B's interface which contains function b's name and input parameters.
Oct 5, 2021, 8:13 PM