chainlink-common icon indicating copy to clipboard operation
chainlink-common copied to clipboard

embeddable implementation of contract reader

Open EasterTheBunny opened this issue 1 year ago • 0 comments

When updates are made to a core interface and committed to common, builds break on core or relay repos due to not matching interfaces. This change proposes using 'unimplemented' versions of an interface to embed in downstream implementations to allow interface additions to be added without breaking downstream builds.

Usage:

type ImplementedContractReader struct {
    types.UnimplementedContractReader
}

// ... actual interface implementation below

EasterTheBunny avatar Aug 01 '24 19:08 EasterTheBunny